Event Driven Design is the implementation of requirements through a queue of events that are triggered by user input. Callback functions only create event objects and add them to the queue so state remains unchanged.
Questions tagged [event-driven-design]
241 questions
0
votes
1 answer
Debugging errors in consuming asynchronous events in apache camel
I'm using apache camel in my application. I use camelContext producerTemplate to send messages:
template.send("seda://destination")
The consumer looks something like this:
from("seda://destination").process(new Processor {
override def…

coder
- 1,901
- 5
- 29
- 44
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
Structure of JavaScript files and Modernizr/yepnope
I'm looking into the whole asynchronous script loading thing with Modernizr and yepnope.js and I'm wondering how I can adapt my application's structure to use asynchronous script loading.
Right now the structure resembles this:
...
…

rink.attendant.6
- 44,500
- 61
- 101
- 156
0
votes
1 answer
What are some Servlet Container for Netty
I wanted to build myself a Web based chat application (something like hipchat or facebook chat)I think netty is the way for this since it is event driven, However. Netty does not have any servlet container. So How do I build my own servlet container…

user962206
- 15,637
- 61
- 177
- 270
0
votes
1 answer
Event driven with Java and Javascript?
I am trying to perform some computations on a server. For this, the client initially inputs some data which I am capturing through Javascript. Now, I would perhaps make a XMLHttpRequest to a server to send this data. Let's say the computation takes…

Legend
- 113,822
- 119
- 272
- 400
0
votes
1 answer
Event Driven Architecture - Service Contract Design
I'm having difficulty conceptualising a requirement I have into something that will fit into our nascent SOA/EDA
We have a component I'll call the Data Downloader. This is a facade for an external data provider that has both high latency and a cost…

Nick Head
- 26
- 4
0
votes
2 answers
Is event based model used in node the same as the event based model used in C# applications?
I've heard about node.js and event based programming and things like the node event loop. In college I remember that I made an ASP.net web application. The professor said that ASP.net uses an event based architecture where callback functions on the…

j.jerrod.taylor
- 1,120
- 1
- 13
- 33
0
votes
2 answers
EDA: "Cascading" Events or Explicit commands?
Scenario
Lets say I have three major components of a system:
UI - Collects input from the user and creates a LoginUserCommand that is sent over a message bus. The user interface then listens to this message bus for MessageReceivedEvent(s).
User…

Codebrain
- 5,565
- 4
- 28
- 21
0
votes
1 answer
Spring Integration - Maximum Throughput Consumer
What configuration of Spring Integration elements, if any, would support the model of:
One message queue, representing incoming work
Multiple consumers reading from that queue (one message only needs to go to one
consumer)
Each consumer only polls…

DeejUK
- 12,891
- 19
- 89
- 169
-1
votes
0 answers
Suggestion on design pattern for event driven webapi development
I need experts' suggestion here to decide the disign to construct the Web Api.
All I know is RESTful API where user can GET/POST/PUT/DELETE to manipulate data and response usually been sent to the client caller.
We have a requirement when API is…

Tejas Vaishnav
- 492
- 2
- 14
-1
votes
1 answer
Should each microservice contain event consumer itself or separate from it in event-driven MSA?
Which one is better between
(1) having event consumer(e.g. KafkaListener) in server application of a microservice
(2) having another application only for consuming the events and calling API of the microservice which contains business logic(e.g.…

Wood
- 422
- 7
- 15
-1
votes
1 answer
How to create a event source system with nodejs and mongodb
I am quite new to event source concept but got glimpse that i need to divide my each task or operation to event and save those, but my basic do but is if for each request if you save each step as event then should not be the db size increase and…

Samuel Josh
- 17
- 3
-1
votes
1 answer
How to iterate a queue during a telnet session?
Having adapted a Tcl script to Java, and using the expectit API, which implements a Java expect, I'm trying to de-clutter the usage below:
package expectit;
import java.util.logging.Logger;
import static…

Thufir
- 8,216
- 28
- 125
- 273
-1
votes
1 answer
calling function pointer of a member function from a function pointer vector
i think this is mostly a syntax error ( though not captured during compilation, only at runtime does the error happen)
i am trying to develop an event driven architecture , where i keep a vector of eventReceiver and try to call them from the…

Shrouk Khan
- 1,440
- 6
- 27
- 53
-2
votes
4 answers
TextField waiting for a user input
I got a JTextfield a GetText method, and an array to store the numbers logged on the Jtextfield.
JTextField tf1 = new JTextField();
frame.add(tf1);
String tfone = tf1.getText();
int one = Integer.parseInt(tfone);
int[][] array = new int[4][5];…

Volazh
- 126
- 2
- 13