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 ...
1
vote
1
answer
64
views
How to design an application for stalling file processing?
I have an application that is receiving a live stream of files, I am using active MQ for listening to the file arrival in s3. As soon as the file arrives in s3 my application downloads the file and ...
0
votes
1
answer
557
views
Can I store a refresh token in a queue?
We have a standard microservices setup (Identity Server, API Gateway, services, etc).
Some of the services schedule events to be dispatched in the future (future = anything from mins to months ahead) -...
1
vote
1
answer
1k
views
Can Domain Services publish Domain Events on multi-aggregate operations?
I'm in a scenario where, when a certain command is applied on an aggregate, I have to
change the state of the aggregate itself
if ALL related aggregates are in the same state, then notify the world ...
-2
votes
1
answer
164
views
Event loop for console input
I have a server application that runs in an infinite loop, only reacting to SIGINT. It is put inside a screen process. If I have to make any changes (reload configuration, add new plugins, etc) I ...
0
votes
1
answer
111
views
What kind of bottlenecks are possible when implementing a distributed workflow using a central point of control?
I was going through https://docs.microsoft.com/en-us/azure/architecture/patterns/choreography, the document mentions in the drawbacks of having a central orchestrator that it can become a performance ...
2
votes
1
answer
363
views
Event Driven Architecture how should channels be used
I'm using event driven architecture, to perform realtime signal proccessing and to provide independent metrics.
I decided to use a redis cluster to act a cache and a message bus.
I'm a bit confused ...
0
votes
1
answer
241
views
Designing Integration event application
We have a microservice that integrates with a third party system via REST API to handle appointment booking for our customer. It takes advantage of the event-driven model. Our microservice emits out ...
0
votes
1
answer
845
views
Communicating state from the backend to the frontend while the user is logged in
Please note: although this question mentions Angular and Spring Boot (Java), and it would be great to get an answer from someone with experience in that stack, I think this is more of an architectural ...
-1
votes
1
answer
227
views
How to record the sequence of events effectively when there is a logical flow runs over various event notifications?
Let me explain what I mean there is a logical flow runs over various event notifications based on our web app, which is event-driven and it is quite common in my opinion.
User clicks a button to ...
7
votes
3
answers
1k
views
Event Driven Architecture - Best Practice
I am trying to understand the best practice around the event-driven architectures. say I have 2 services order service and inventory service. An user wants to order product and sends a request to ...
4
votes
1
answer
578
views
What is the right way of using event aggregator/message bus?
Recently I had a conversation with a colleague, who proposed that a whole app could rely on an event aggregator (or message bus).
I think this is a really good pattern if someone wants to decouple ...
1
vote
0
answers
433
views
RabbitMQ messages reliability for at-least-once delivery
I wanted to ask what are the possibilities of maintaining reliability when exchanging messages between microservices, when one of those message is rejected. As of today, we don't want to lose messages,...
0
votes
1
answer
490
views
Event sourcing: Update local data before posting an event?
We are introducing events to our system (I would hesitate to call it 'event sourcing', but we have started down this road). To do this we are still maintaining the same HTTP public 'CRUD' API's, but ...
1
vote
1
answer
317
views
Best approach to update the User Interface on consumed event(s)?
I am developing a microservice architecture where the API publishes a message through RabbitMQ. One or more consumers will read the message, preform its functions then if successful acknowledge the ...
0
votes
1
answer
100
views
Move monolith to Event Streaming in one step or multiple steps?
I have been the sole developer on a project for the past eight years. Right now it's one big monolith, but at this point it's really three separate apps, and those really need to be broken down as ...
1
vote
1
answer
283
views
Designing Kafka topics for secured event driven job scheduling system
Consider the following
Group A
Job A {
Depends on Job B of Group A
Run User -> User1
}
Job B {
Depends on Job C and Job D of Group A
Run User -> User2
}
Job C {
Depends ...
0
votes
1
answer
444
views
Notify user in a event driven architecture
We have put in place an account service management : its reponsability is to let a user register is account, confirm his email, etc...
We have put also in place a process layer that is reponsible to ...