Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [event-handling]

The tag has no usage guidance.

0
votes
1answer
72 views

Multithreading - 2 active running threads calling each other without blocking itself

I have an implemented UDP receiver which is continuously receiving DTN packets (UDP encapsulated) and performing some operations on them. This whole process is working on a single main thread. However ...
0
votes
0answers
25 views

System design for scalable SNMP trap processor [closed]

We are working with Network Management System(NMS) and Fault Management is one of the feature supported by this system. We have a datacenter in which the switches and routers are there. These devices ...
1
vote
3answers
104 views

Domain Events, CQRS, and dependency resolution in handlers

Currently: ASP.NET Core 2.2. I've been doing quite an extensive research in this topic (Domain Driven Design used together with Clean Architecture): DDD: Where to place domain event handlers? And I'...
0
votes
1answer
74 views

DDD - Handling temporary inconsistency when handling domain events

I realize that DDD advocates eventual consistency, thus allowing for a certain period of time in which the system might be inconsistent. Embracing eventual consistency, we can therefore model our ...
0
votes
1answer
189 views

Consuming messages directly from a queue which belongs to a third party system

We are working on a project which interacts with multiple third party systems and they need each other's data to function. Now, for some data which needs to be in sync in multiple systems, we are ...
5
votes
2answers
458 views

How to deal with file events with microservice that exposes a REST API

A bit of context. The company where I work is starting to transition to a modular architecture (something similar to microservices) for our main product, currently monolithic. The first step is to ...
2
votes
3answers
367 views

What should a method which creates conditionally self-unsubscribing event-handlers be named?

I develop/maintain an in-house library in a growing company with about 12 other developers that write code. This library is mostly used for scripting game behavior and we have many different projects ...
1
vote
1answer
77 views

What kind of granularity is recommended in reactive programming when publishing state change events?

I'm currently developing an application using reactive programming. Every entity creation or modification in the system publishes an event and no two entities can be created/modified within the same ...
3
votes
3answers
863 views

DDD: How to properly process events without using Event Store or Event Sourcing

Does this make sense or what is wrong with this approach? So instead of using event store, we may use aggregate repository to update the aggregate based on values contained in published event.
3
votes
2answers
2k views

How do event sourced systems make sure the read model is only updated once?

Currently looking into Event Sourcing in a Microservices architecture and I've found this article. It describes a possible implementation of CQRS and event sourcing. If the logic dealing with updating ...
1
vote
3answers
224 views

Reducing mutability in an event-driven system

I'm building a game with the LibGDX game engine. The engine works by registering an implementation of an interface that receives callbacks on the game loop. The interface looks like this: public ...
-1
votes
2answers
98 views

How to swap between 2 third-party providers when both implement different events?

I have 2 third-party providers, both do a similar function(this could be logging, messaging, etc), and both have events that the client must subscribe to. I want to know what design patterns or ...
-6
votes
1answer
300 views

What design patterns to use for swapping RabbitMq and Kafka messaging systems

This is quite a general question. I want to design a set of classes and interfaces so I can swap between messaging systems without changing code, probably between RabbitMq and Kafka. My main concern ...
0
votes
0answers
114 views

Is the HTML / JavaScript event handling exactly the Chain of Responsibility design pattern?

Just except that Chain of Responsibility might go one straight line, but in the HTML event handling, it is first the "capture phase" (capturing), then the "at phase", and then the "bubble phase" (...