Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.

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.

Filter by
Sorted by
Tagged with
1 vote
3 answers
194 views

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 ...
bielu000's user avatar
  • 351
2 votes
3 answers
168 views

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
289 views

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
145 views

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 ...
Arvin Yorro's user avatar
2 votes
1 answer
1k views

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
157 views

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
325 views

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
116 views

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
420 views

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
292 views

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,649
2 votes
2 answers
1k views

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

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
4k views

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
785 views

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
366 views

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
  • 299
10 votes
8 answers
4k views

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
1 vote
1 answer
64 views

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 ...
DDM's user avatar
  • 11
-1 votes
1 answer
415 views

I have the following requirements: Write a GUI app for automated testing of some custom PCB hardware. The system must be usable for a technician with little to no advanced PC skills. The test setup ...
Louis Cloete's user avatar
0 votes
1 answer
557 views

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) -...
Keir's user avatar
  • 143
0 votes
1 answer
202 views

I am part of a project/team that is building a new web app in Azure for the first time, having previously built and developed a traditional three tier ASP.NET web app over a number of years. We have ...
redcalx's user avatar
  • 375
1 vote
1 answer
1k views

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 ...
Carmine Ingaldi's user avatar
0 votes
2 answers
487 views

When an entity is changed, I want to raise an event to notify potential consumers about the state changes. My question is, should I have an xxxChanged event for each attribute, or a single ...
BenV's user avatar
  • 812
-2 votes
1 answer
164 views

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 ...
a.ilchinger's user avatar
2 votes
3 answers
2k views

I have read in a DDD book that using message queues between communicating services can make the whole architecture more scalable, amazon's documentation mentions that queues provide granular ...
takasugi's user avatar
  • 303
0 votes
1 answer
111 views

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 ...
takasugi's user avatar
  • 303
0 votes
2 answers
127 views

I have an event driven architecutre, with many microserver that publish a lot of message in my event bus. In some case i can't track why some process is blocked, maybe because my Service-A haven't ...
FedeC87p's user avatar
2 votes
1 answer
363 views

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 ...
johnny 5's user avatar
  • 335
2 votes
0 answers
47 views

I have an interesting and problem I'm facing. I'm trying to maintain a set of metrics independently based off of a time frequency. Note: This is a simplification of the problem I've omitted pieces of ...
johnny 5's user avatar
  • 335
0 votes
1 answer
241 views

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 ...
user2884707bond's user avatar
1 vote
2 answers
319 views

Problem In my application a user can lock a set of related aggregate roots to work exclusively on them and to avoid the usage of an invalid set of objects later in the process (by other employees). ...
deamon's user avatar
  • 886
0 votes
1 answer
845 views

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 ...
hotmeatballsoup's user avatar
3 votes
1 answer
167 views

I'm working on a multi-threaded program that interfaces with external USB/serial devices via user-space device drivers. Early in the design stage, I made the decision to split the program into three ...
John O'brien's user avatar
-1 votes
1 answer
227 views

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 ...
Qiulang 邱朗's user avatar
2 votes
1 answer
70 views

I need some advice on an IOT project I am working on. Here are some details about what I am trying to do: Use Case: Periodically receive data from the 3rd party vendor API in real time and allow users ...
Riley MacDonald's user avatar
7 votes
3 answers
1k views

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 ...
RamPrakash's user avatar
0 votes
2 answers
89 views

I'm designing a 3D visualisation applet in Javascript. When used, a Canvas will be created and placed inside an HTML element on a webpage, specified by the developer who is implementing the applet. ...
Okarin's user avatar
  • 109
4 votes
1 answer
578 views

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 ...
Shadow's user avatar
  • 361
8 votes
1 answer
702 views

So I'm aware there's some degree of timing-based logic in existing programming languages, like threads and the sleep() function (and derivatives thereof), as well as events / delegates. However, I was ...
Emerald47890's user avatar
1 vote
0 answers
433 views

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,...
mkuligowski's user avatar
2 votes
1 answer
2k views

We are building a microservice architecture. We have one service which imports a set of data (usually, ca. 10MB). Another service should do some analysing and manipulation stuff on these data. A third ...
S-Man's user avatar
  • 121
0 votes
1 answer
489 views

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 ...
jramm's user avatar
  • 165
1 vote
1 answer
347 views

Context Espressif's embedded development libraries for the ESP32 microcontroller contain an event system based on FreeRTOS. The event system handles connectivity, interrupts and other IO activity, but ...
detly's user avatar
  • 1,615
1 vote
1 answer
317 views

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 ...
Trevor V's user avatar
  • 121
1 vote
2 answers
1k views

Say I have a service that is producing events of the format type: SEND_MESSAGE, to: '[email protected]', And I have another service, that is saying, "for the next four hours, I want to consume all ...
dwjohnston's user avatar
  • 2,769
0 votes
1 answer
100 views

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 ...
Jhorra's user avatar
  • 147
0 votes
0 answers
150 views

The company I work for has a ticketing platform. The backend system consists of a few applications talking to each other via HTTP and through events in Kafka. A ticket has a sell_start_date field ...
antonro's user avatar
  • 249
1 vote
1 answer
283 views

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 ...
ThinkGeek's user avatar
  • 119
-4 votes
1 answer
78 views

I've recently started reading about CQRS, DDD and EventSourcing. From what I've read one of the best ways to do ES is to have an event store and then a regular DB or cache for easier querying. However,...
MZokov's user avatar
  • 101
0 votes
1 answer
444 views

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 ...
Dypso's user avatar
  • 231
2 votes
1 answer
85 views

I've run into a common annoyance where I'll have an event that sends a parameter, but some consumers of the event don't need the parameter at all. So I wrap it in another function that decouples the ...
Adam B's user avatar
  • 1,660

1
2 3 4 5