Questions tagged [event-driven]

The event-driven paradigm of programming centralizes all waiting for events to one generalized loop that delivers (dispatches) events to registered listeners (event handlers).

The event-driven paradigm of programming centralizes all waiting for events to one generalized loop that delivers (dispatches) events to registered listeners (event handlers). When triggered, the event handlers change the state of the program, sometimes even by de-registering event handlers.

324 questions
0
votes
1 answer

Jquery periodic page refresh vs. event driven page refresh

I understand that you can refresh with ajax, periodically pulling, given a timer. But how do you set up a page to update only when an http request which has triggered/happened from the server side? So you would typically do this Periodic page…
stackoverflow
  • 15,804
  • 43
  • 121
  • 181
0
votes
1 answer

Java Client driven by asynchronous events(xml messages) over a TCP Connection

I need to write a Java Client application which needs to establish a TCP connection to a server which sends events(xml messages). Before receiving the events from the server, the Client will also be sending an xml message to create a channel on the…
0
votes
1 answer

Callback get function in combination with a event-driven design

I want to make an API(node.js) with a get function. The module I use supports a write, and all incoming data is emitted by an event which I can subscribe too. The underlying system is based on polling. But I also want to add pollers that write…
Eric Smekens
  • 1,552
  • 20
  • 31
0
votes
1 answer

MySQL vs Redis for storing follower/following users

I'm trying to find the best candidate for storing the follower/following user data, I was thinking initially to store it in Redis in a set where user -> set of user ids but then I thought about scenario where there is over 1 million or even 10…
Itay
  • 41
  • 1
  • 6
0
votes
1 answer

What can i parallelize in event driven python web application?

I'm trying to make a simple application on Tornado, and Tornado is an event driven Webserver, and because it's on Python, then i'll try to use Multiprocessing, but in what? Password hashing is a linear operation no? if i hash a password 1000 times,…
Abdelouahab Pp
  • 3,506
  • 11
  • 35
  • 64
0
votes
1 answer

JBoss Seam - Massive Messaging in Application

I'´m currently twiddling with an application that has a setup matching the following chat analogy: a chat is an object that is held in memory and contains a list of chat messages a chat is rendered in several browser windows and updates are pulled…
Elmar Weber
  • 2,393
  • 24
  • 24
0
votes
3 answers

Event-Driven Client/Server Design with C++

I am designing a game server with scripting capabilities. The general design goes like this: Client connects to Server, Server initializes Client, Server sends Client to EventManager (separate thread, uses libevent), EventManager receives receive…
Chaosteil
  • 150
  • 2
  • 8
0
votes
3 answers

How should menu links be generated in a PHP system?

Part of my Computing course requires me to build an entire PHP system. I have chosen to create one for a fictitious stock broking company which wants its clients to be able to view their assets (shares and bonds) via a web system. For the menu, my…
Edward
  • 95
  • 1
  • 1
  • 9
0
votes
1 answer

How can 'one' IOLoop handle 10k connections?

am sorry for this dumb question, but am really confused; and i hope you'll correct me where am wrong. in the thread based servers (like Apache), i understand that for each client, a new 'worker' will be created for him to serve all his needs. in the…
Abdelouahab Pp
  • 3,506
  • 11
  • 35
  • 64
0
votes
1 answer

Do case statements have to be used for links in PHP?

I've been given a school project which involves creating an online invoicing system in PHP. My teacher seems to be convinced that the only way to have a menu (with fixed pages like "display", etc) is to use case statements. My first guess would have…
Edward
  • 95
  • 1
  • 1
  • 9
0
votes
1 answer

How to create two way persistence for a game server using Node.js?

Lets say we are building a spaceship game. A few object types would be spaceships, and solar systems. I would like to use Node as the backend. The issue I am having is how to have both these objects existing and interacting with each other in real…
0
votes
2 answers

Main loop in event-driven programming and alternatives

To the best of my knowledge, event-driven programs require a main loop such as while (1) { } I am just curious if this while loop can cost a high CPU usage? Is there any other way to implement event-driven programs without using the main loop?
user188276
0
votes
1 answer

epoll/non blocking event driven IO

My question about epoll based non blocking event driven network IO is this - how does the client connection to the epoll service provider remain open? Why doesn't the connection on the client side die when there isn't a permanent receiver on the…
Pradeep
  • 88
  • 8
-1
votes
2 answers

Browser-side node.js or non-blocking javascript?

I am fascinated with non-blocking architectures. While I haven't used Node.js, I have a grasp of it conceptually. Also, I have been developing an event-driven web app so I have a fundamental understanding of event programming. How do you write…
Mario
  • 6,206
  • 3
  • 37
  • 69
-1
votes
0 answers

Can Event Driven Architecture be implemented with HTTP Streaming?

HTTP Streaming is mainly used to send/receive huge payload like attachments. For ex, When the request is sent by the client for file download, the server streams the file in chunks and closes the connection upon sending the last piece of the…
jack
  • 701
  • 1
  • 7
  • 23
1 2 3
21
22