Questions tagged [event-driven-design]

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.

186 questions
81
votes
9 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,102
  • 7
  • 49
  • 81
44
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
  • 20,265
  • 25
  • 105
  • 178
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…
17
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,245
  • 6
  • 36
  • 97
14
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
  • 7,620
  • 14
  • 74
  • 121
14
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,795
  • 5
  • 24
  • 28
13
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
  • 4,705
  • 2
  • 20
  • 32
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
  • 2,776
  • 8
  • 31
  • 56
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,284
  • 1
  • 12
  • 24
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,119
  • 17
  • 58
  • 87
10
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
  • 103
  • 6
9
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
  • 2,442
  • 2
  • 22
  • 39
8
votes
2 answers

Java and event driven programming

I am using javaeventing to write an even driven shell to access a database. So, my use case is: open up the shell in command line. Now, the shell connects to database and listens for the command coming in. when it gets a command, it executes it…
zengr
  • 36,384
  • 37
  • 121
  • 187
8
votes
2 answers

How to create replay mechanism within event-drive microservice

We have 7 microservices communicated via eventbus. We have a real-time transaction sequence: Service 1->service2->service3 (and so on.) Until transactions considered as completed We must make sure all transactions happened. Ofcourse we can have…
rayman
  • 18,586
  • 41
  • 135
  • 234
8
votes
2 answers

EventSourcing race condition

Here is the nice article which describes what is ES and how to deal with it. Everything is fine there, but one image is bothering me. Here it is I understand that in distributed event-based systems we are able to achieve eventual consistency only.…
1
2 3
12 13