Skip to main content

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.

2 votes
3 answers
122 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 ...
JorgeeFG's user avatar
  • 697
0 votes
3 answers
192 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 ...
Raphaël's user avatar
  • 119
0 votes
0 answers
96 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 ...
Yorro's user avatar
  • 159
1 vote
1 answer
521 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 ...
Paymahn Moghadasian's user avatar
0 votes
0 answers
95 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 ...
Drake's user avatar
  • 1
0 votes
1 answer
298 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
0 votes
1 answer
88 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 ...
viblo's user avatar
  • 101
0 votes
0 answers
262 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 ...
Ilya's user avatar
  • 101
1 vote
0 answers
221 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> ...
Anon's user avatar
  • 3,613
2 votes
2 answers
615 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 ...
Deepal's user avatar
  • 129
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 ...
Paul Calcraft's user avatar
6 votes
2 answers
3k 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 ...
oren's user avatar
  • 297
0 votes
1 answer
483 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 ...
user1902689's user avatar
-1 votes
2 answers
285 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 ...
alilland's user avatar
  • 289
10 votes
8 answers
3k views

Why is there a shift towards asynchronous and event driven programming?

My question will be mostly about Linux and contemporary X86 hardware. Clarifying the terms async event based programming: spawning fixed amount of threads and using some user space scheduling ...
Incomputable's user avatar

15 30 50 per page
1
2 3 4 5
16