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
103
votes
11 answers
Why are commands and events separately represented?
What is the difference between commands and events in architectures that emphasize events? The only distinction I can see is that commands are usually sourced/invoked by actors outside the system, whereas events seem to be sourced by handlers and…

alphadogg
- 12,762
- 9
- 54
- 88
45
votes
3 answers
What kind of "EventBus" to use in Spring? Built-in, Reactor, Akka?
We're going to start a new Spring 4 application in a few weeks. And we'd like to use some event-driven architecture. This year I read here and there about "Reactor" and while looking for it on the web, I stumbled upon "Akka".
So for now we have 3…

Benjamin M
- 23,599
- 32
- 121
- 201
30
votes
7 answers
jQuery plugin for Event Driven Architecture?
Are there any Event Driven Architecture jQuery plugins?
Step 1: Subscribing
The subscribers subscribe to the event handler in the middle, and pass in a callback method, as well as the name of the event they are listening for...
i.e. The two green…

leeand00
- 25,510
- 39
- 140
- 297
28
votes
3 answers
Azure Service Bus equivalent for AWS
I am in the process of moving an application from c# to node.js. I am a node.js newbie, coming from a .net background. I am looking to incorporate domain driven design patterns into the app. development which led me to the concept of bounded…

user1790300
- 2,143
- 10
- 54
- 123
19
votes
1 answer
Documenting an Event-Driven Architecture
I'm designing an Event-Driven system to be built by at least two teams with two different outsourcing companies.
We have designed everything internally, but now I'm creating the documentation for the development team.
For the HTTP I'm using…

Victor
- 8,309
- 14
- 80
- 129
18
votes
1 answer
Dealing with exceptions in an event driven world
I'm trying to understand how exceptions are handled in an event driven world using micro-services (using apache kafka). For example, if you take the following order scenario whereby the following actions need to happen before the order can be…

James
- 183
- 1
- 6
16
votes
5 answers
Event driven architecture...infinite loop
I have an event driven architecture where A is waiting for a change from B and B is waiting for a change from C and C is waiting for a change from A, forming a cycle.
Now, if B changes, then A fires an event to C, which fires to B, which fires to…

Bain Markev
- 2,935
- 5
- 29
- 28
15
votes
3 answers
Event-driven architecture and hooks in PHP
I am planning on working on a game that has a PHP back-end to communicate with the data repository. I was thinking about it and concluded that the best design paradigm to follow for our game would be event driven. I am looking to have an achievement…

MoarCodePlz
- 5,086
- 2
- 25
- 31
15
votes
4 answers
Event driven design in c
Imagine a device full of sensors. Now, in case a sensor x detects something, something should happen. Meanwhile, in case something else is detected, like two sensors detects two different things, then, this device must behave differently.
From…

piggyback
- 9,034
- 13
- 51
- 80
13
votes
1 answer
Turn-based Game Design: Event-Driven vs. Game Loop
I am creating my first game in Java. The game is Monopoly. I am struggling with how I should design the game to model its turn-based structure (managing player turns). I want to allow for both a single human-controlled and one or multiple…

nairware
- 3,090
- 9
- 37
- 58
12
votes
1 answer
What's the best practice to do event driven development in Angular.js apps?
I am adding some websocket functional to our angular app. The Websocket object is wrapped in a service. Ideally we would like our wrapped socket object to have a standard event API so that we can use it in the controller like the following: (Sorry…

KailuoWang
- 1,304
- 1
- 12
- 24
11
votes
1 answer
Event sourcing for synchronous concerns
I struggling to understand how I can design a backend that is event driven using event sourcing that can support synchronous requests. From what I understand, to take advantage of event sourcing, you must develop the system to react to events so…

alaboudi
- 3,187
- 4
- 29
- 47
11
votes
2 answers
About the Mediator in Event-Driven Topology
I was reading this article called Variations in event-driven architecture in which they demonstrate both the mediator and broker topologies.
According to the article the mediator topology looks somewhat like this:
The event flow starts with the…

Edwin Dalorzo
- 76,803
- 25
- 144
- 205
10
votes
4 answers
best practices for handling UI events
I have put the all the binding code for UI events on OnCreate(). It has made my OnCreate() huge.
Is there pattern around implementing UI events in android ? Can I add methods in View xml file and then I can put all the handler code somewhere…

Gainster
- 5,481
- 19
- 61
- 90
10
votes
1 answer
Request based vs Event based architecture
Q1
I know the fundamental different between event based vs request based/driven architecture. Question is if the Request-based always done in synchronously while the Event-based is always done in asynchronously ?
Q2
Also, in API world…

bet
- 962
- 1
- 9
- 22