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.

241 questions
5
votes
3 answers

Event Sourcing with Side-Effects

I'm building a service using the familiar event sourcing pattern: A request is received. The aggregate's history is loaded. The aggregate is rebuilt (from its history). New events are prepared and the aggregate is updated in response to the…
Charles R
  • 17,989
  • 6
  • 20
  • 18
5
votes
2 answers

Event driven vs sequential programming

One of my friend recently had an argument in his team about the pros and cons of event driven programming vs sequential programming. What are your views about it?
sachin
  • 1,141
  • 2
  • 16
  • 21
5
votes
1 answer

Communicating between views design patterns with events

event handlers are fine when you have a view that reference another view and listens its events, thats perfect for decoupling and reusability. the problem though is sometimes I have views that is not referenced so I use Event Aggregator that is a…
5
votes
2 answers

Java - event processing design

I am trying to develop a system which will be based on processing certain events and generating data. Each event will contain (possibly) several different fields and each listener will process some or them. I have the following two approaches in…
Bober02
  • 15,034
  • 31
  • 92
  • 178
4
votes
3 answers

MongoDB Event Driven Database Design

Goal Zero Conflict System: Having this be a write-only system would save us from conflicts. People are creating and updating documents both offline and online and being able to figure out what update trumps what is important. Deep Historical…
bryan
  • 8,879
  • 18
  • 83
  • 166
4
votes
5 answers

Is microservice architecture using message queues and event driven architecture same

Edit v1: I have been going through some system design videos and learnt about microservice architecture using message queues and event-driven architecture. But I don't seem to find any substantial point of difference between the two. Both have…
inode
  • 51
  • 6
4
votes
2 answers

How does event-driven programming help a webserver that only does IO?

I'm considering a few frameworks/programming methods for our new backend project. It regards a BackendForFrontend implementation, which aggregates downstream services. For simplicity, these are the steps it goes trough: Request comes into the…
4
votes
2 answers

How to sketch out an event-driven system?

I'm trying to design a system in Node.js (an attempt at solving one of my earlier problems, using Node's concurrency) but I'm running into trouble figuring out how to draw a plan of how the thing should operate. I'm getting very tripped up thinking…
Jordan Warbelow-Feldstein
  • 10,510
  • 12
  • 48
  • 79
4
votes
2 answers

Listening on multiple events

How to deal with correlated events in an Event Driven Architecture? Concretely, what if multiple events must be triggered in order for some action to be performed. For example, I have a microservice that listens to two events foo and bar and only…
spacemonkey
  • 19,664
  • 14
  • 42
  • 62
4
votes
0 answers

Testing event-driven architecture

I would like to ask, is there any guidance to test event driven architecture. What I mean is to create automatic test, which will check, if events spawned by Service A, can still be consumed by Service B. I know there is Pacto for Rest…
Dariss
  • 1,258
  • 1
  • 12
  • 27
4
votes
1 answer

Event driven programming - event loops?

I was just wondering, is any implementation of an event loop bound to platform specific code? By event loop, I'm referring to a simple thread that is checking a queue, working with messages and dispatches appropriately to callbacks. Because I simply…
3
votes
1 answer

Guarantying eventual consistency without a message broker (utilising an in memory message bus)

I am thinking if there could be an easy way to guarantee eventual consistency in an event driven modular monolith, which is utilising an in process message bus instead of an actual external message broker. All solutions out there seem to utilise…
3
votes
3 answers

Flutter BLoC - Bloc vs Cubit event driven state management advantages

What are the actual advantage(s) of Bloc over Cubit? In addition to traceability (which you can also achieve with appropriate logging in Cubit), and advanced event transformations (I can't think of any "advanced" event transformations that Cubit…
3
votes
1 answer

Azure Event Hubs Streaming: Does Checkpointing override setStartingPosition?

If we specify the starting position in EventHub conf like so: EventHubsConf(ConnectionStringBuilder(eventHubConnectionString).build) .setStartingPosition(EventPosition.fromStartOfStream) or …
3
votes
2 answers

Is the "sender" in Button_Click(object sender... really the sender?

Ted Faison in a podcast on event-based software design mentioned that "sender" and "self" objects in .NET, C++ and Java event statements such as: private void Button_Click(object sender, RoutedEventArgs e) are a misnomer since e.g. in the above…
Edward Tanguay
  • 189,012
  • 314
  • 712
  • 1,047
1 2
3
16 17