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.

418 questions
0
votes
1 answer

node.js and slow database queries

I am re-writing a c# server, and I would like to use an event driven model. My server needs to make complex database queries that may take some time to complete. How does this fit in with the event-driven model where I would have a single event loop…
Jacko
  • 12,665
  • 18
  • 75
  • 126
0
votes
1 answer

How to extract data from one of the sheets in XLS file using POIFS API?

I understand how to use POI API (User Model). However, presently, this is not helpful to me as I'm dealing with XLS files larger than 200 MB in size. In one of the questions here on stack overflow, I learned that I need to use an Event-Driven…
Bharat Nanwani
  • 653
  • 4
  • 11
  • 27
0
votes
1 answer

Is it possible to register events with nginx's event loop?

I want a web server based on nginx, which receives a HTTP message, parses it and checks in Redis for a given key's value and send back a response, all this has to be done asynchronously / non-blocking read/write from Redis. Is it possible? I went…
melwin_jose
  • 315
  • 3
  • 20
0
votes
1 answer

Message Bus vs Layered

hoping for some advice on my architecture Currently I used a layered architecture but somethings are getting a bit complex and was thinking a message bus would be far more useful I have a controller action called "CreateTeam" on the…
Luke
  • 1
  • 2
0
votes
0 answers

Event driven for huge amount of data (Java)

Event-driven is a nice concept. But business is not concerned with programming approaches, rather it expects application to be fast, robust, fault-tolerant, etc. If I have the following process: (ext. system) -> IData -> T1 -> T2 -> (ext. system) I…
Denis Kulagin
  • 8,472
  • 17
  • 60
  • 129
0
votes
1 answer

Event Driven server using Java NIO

I'm trying to wrap my head around building an asynchronous (non blocking) HTTP server using java NIO. I presently have a threadpool implementation and would like to make it into Event Driven with single thread. How exactly does an Event Driven…
0
votes
1 answer

Event-driven programming - node.js, Java

I am coming from Java but have been doing some Node.js lately, and have been looking at the EventEmitter module in Node. What I don't understand is the fundamental difference between Event-driven programming and 'regular' programming. Here is some…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
0
votes
0 answers

Is there Standard literature on compilation of event networks?

Given an arbitrary DAG-based event-network, think FRP-networks, it should be possible to create an "optimal" imperative representation that it could be compiled to. This probably involves topological sorting and graph reduction algorithms. Is there…
fho
  • 6,787
  • 26
  • 71
0
votes
2 answers

AS3 program structure with regard to modal dialogues

Dealing with the unfamiliar concept (to me) of asynchronous and event driven programming I struggle with the correct structure of my programs in AS3. What I want to do is write a class which presents the user with a dialogue box with some text…
Jerry
  • 17
  • 4
0
votes
3 answers

Event-Driven Programming - How does an event know when to occur?

In the past few weeks I've been really into what happens "behind the scenes" in softwares, and there is something that really interests me - how does an event in Event-Driven Programming know when to occur? Let me explain: Let's say we have a…
MrByte
  • 1,083
  • 2
  • 11
  • 21
0
votes
2 answers

How can I wait for asynchronous events in Javascript?

I'm new to JavaScript, and still not familiar with asynchronous functions... I'm working with node.js to create a chat server, this is a part of my code that's listen to getListConnected event and when it triggered it look for all connected clients…
Marwen Trabelsi
  • 4,167
  • 8
  • 39
  • 80
0
votes
0 answers

Wrapping Sync code into Async PHP

Let's say I have a blocking long running process that uses SoapClient to connect to a webservice , Is it possible to wrap the normal code into an async way , I'm aware that I can send parallel Soap requests with different libraries , I just want to…
Reza Shadman
  • 617
  • 6
  • 15
0
votes
1 answer

Non-blocking I/O on graph database

I'm looking for a non-blocking/event-driven way to talk to a graph database. Tinkerpop is blocking - are there any ways to overcome this? I'm wondering if building an async rexter/rexpro client would be the way to get there or if I've overlooked…
JasonG
  • 5,794
  • 4
  • 39
  • 67
0
votes
1 answer

Qt Waiting for QPushButton press

I’m doing my first project in Qt and I have the problem. I know that there are many similar requests on the SO nad Qt forum, but no one answered my question. I would like to stop the program execution and wait for the click of the button. More or…
ukson
  • 125
  • 4
  • 10
0
votes
1 answer

Java game. Bullet doesn't fly straight from the gun

Everything is working as supposed to with the exception of the bullet not shooting straight from the cannon. The cannon moves across the screen as it is supposed to but once the bullet is shot it doesn't travel at the angle in which the gun is…
MontyMax
  • 105
  • 1
  • 1
  • 9