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
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
3
answers
165
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 ...
2
votes
3
answers
149
views
Explicit business rules vs business rules through events?
I don't know how to look for this so I apologize if this is already answered.
I'm wondering how to decide what is best in terms of SRP and explicit business rules.
I feel that writing business logic ...
0
votes
3
answers
265
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 ...
0
votes
0
answers
131
views
Good reason not to do this: Pub/Sub with only 1 topic and publishers are also subscribers
Looking for a good reason to avoid this solution.
Problem
Multiple microservices/SAAS, each storing the same data that needs to be synced (example is customer contact details).
1st is an OAuth ...
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
0
answers
145
views
Kafka : Is sending some payload data (identifier) in headers considered a good practive?
I am wondering about some architectonical decisions in our system.
There are situations where we are sending import business events through kafka which should be performed in every case.
All the cases ...
0
votes
1
answer
315
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 ...
user avatar
user175557
0
votes
1
answer
103
views
Model events according to service internal domain model, or a shared model?
We have a system built on microservices with 50-100 different services. Previously most servcie-to-service communication was done with direct REST API calls, but we are shifting to a event based ...
0
votes
0
answers
398
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 ...
1
vote
0
answers
279
views
If you run a function in a different thread, but you wait for it to finish in your main thread, is that function asynchronous?
Backstory
Probably a stupid question, but I just have a sneaking suspicion that "asynchronous" is the wrong terminology to us for naming my template function here:
template <class T>
...
2
votes
2
answers
963
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 ...
33
votes
7
answers
8k
views
Why do modern operating systems *ever* have perceptible input (keyboard/mouse) lag?
Sometimes computers stutter a bit when they're working hard, to the point where the mouse location freezes for a fraction of a second, or stutters intermittently for a few seconds. This sometimes ...
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 ...
0
votes
1
answer
756
views
Clean code: Register listeners inside class handling events, or outside?
I'm writing a Java program with a custom event manager, which is of course the observer pattern. Should the calls to add event listeners/handlers be in the classes that listens/handles the events ...
-1
votes
2
answers
355
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 ...