Questions tagged [event-handling]
The event-handling tag has no summary.
50 questions
0 votes
0 answers
106 views
How can I integrate a library that expects backend events into my own event system? [migrated]
I'm using SDL2 in my game engine and have created custom event types that use the data from SDL_Event. This works well within my own code, but it becomes problematic with ImGui (and other libraries ...
1 vote
0 answers
174 views
DDD -Can an aggregate consumes its own events?
I'm facing to an issue with my design in DDD with "Always valid Domain Model" principale and eventual consistency. I have an aggregate with several public methods to mutate its state. class ...
2 votes
2 answers
377 views
Handling parents events from child component, in a props down events up approach
This question is language/framework agnostic. EDIT: The comments and answers have highlighted how different languages approach events differently, which made me realize this question isn't really ...
1 vote
1 answer
104 views
Handling a single event as broadcast and round-robin depending on service
I have Service A that publishes an event to RabbitMQ. I have two instances of Service B that will use the event to write to its database. I have two instances of Service C that will send the event ...
2 votes
1 answer
1k views
In an event-driven system, what are the best practices around the number of events and size/atomicity?
If you can have one event with multiple "things to process" or one event per thing to process, what is considered the best practice? Bearing in mind, the former option may involve persisting ...
0 votes
1 answer
247 views
Avoiding "handler creep" in React components?
An issue I find myself having with code layout in my React components is that I end up having to define too many handlers. I generally write only functional components with hooks, but within the body ...
4 votes
2 answers
564 views
Does creating one thread per event subscriber scale well?
I'm working on an application implemented in different microservices, which uses a message broker (event bus) to consume events (simple pub/sub). As for now, in a given microservice, we are spawning 1 ...
0 votes
1 answer
213 views
How to deal with massively concurrent events?
I got the following interview question: Say the company has this event, where we will create a button on a website and only the first ten clicks will be accepted and win a prize. Assume that there a ...