Questions tagged [event-programming]
Event-driven programming refers to the programming technique where the flow of the program is driven by recognition and handling of events such as mouse clicks, key presses, etc.
232 questions
1 vote
3 answers
194 views
Ensuring proper initialization order in event-driven C++ applications
I'm working on a C++ system where I have a concept of a "Board" object. Each board can have services attached (e.g. UpdateService, LoggingService, etc.). I'm trying to design how these ...
0 votes
3 answers
289 views
Event-driven design with delayed consequences
EDIT: more direct situation I need to design a program that will create particular objects and run computationally intensive procedures using its fields in order to update other fields. When a ...
2 votes
1 answer
1k views
How to handle aggregations of out-of-order events in an event stream?
I'm interested in integrating with an external system which uses webhooks to notify clients of events. The system is very similar to Stripe - the REST endpoints have rate limits to avoid undue polling ...
0 votes
1 answer
325 views
Capture a time-ordered sequence of item-level modifications via events when using Amazon Aurora
I'm designing a small platform based on a series of event-based micro-services. The persistence storage I'm targeting is (the managed) Amazon PostgreSQL (Amazon RDS for PostgreSQL) — although I can go ...
0 votes
0 answers
420 views
Event Driven architecture - right way to build chain of events
Let's say we have a ecommerce platform. When user create order - we should make several actions like Send push to client Send push to custome Send emails e.t.c Generally I see two diffrent aproaches ...
2 votes
2 answers
1k views
A service having to have both an API and listen to events - Is this an anti-pattern for microservices?
I have a use case to create a service that consume messages from a message queue, process them, store them in the DB, and expose the processed results via an API. Therefore, the service I'm going to ...
6 votes
2 answers
4k views
Alternatives to outbox pattern, does outbox pattern break clean-architecture?
I've read and tried the Transactional Outbox pattern for communicating between services. It is clear to me what are the benefits of this pattern, as it has two main parts: By using a transaction, we ...
-1 votes
2 answers
366 views
in an event driven architecture, should all stream consumers receive every message published to the stream?
I'm tinkering with the new streaming plugin provided with RabbitMQ, and researching how to implement event driven architectures in general. I noticed in the default configuration (maybe I have it ...