Event Driven Design is the implementation of requirements through a queue of events that are triggered by user input. Callback functions only create event objects and add them to the queue so state remains unchanged.
Questions tagged [event-driven-design]
241 questions
3
votes
2 answers
Event Driven Microservices: How to send protobuf messages of different types to one AWS SNS(stream)?
I am planning to develop an Event-Driven Microservices.
I create a protobuf project, which defines several types of messages.
EmployeeMessage
UserMessage
ProcessMessage
ApplicantMessage
Then, I compile the protobuf project to different…

Ryan Lyu
- 4,180
- 5
- 35
- 51
3
votes
1 answer
Identity Reference between two bounded contexts
I am looking to get the best practice around DDD/CQRS principles for handing relationships between bounded contexts.
We have two BCs Property Management Context and Tenant Portal Context. We have the Home aggregate in the Tenant Portal context,…

Kyle
- 186
- 5
3
votes
2 answers
Are workflow engine and event stream framework alternatives for an orchestration layer?
I have to implement a document management service as an orchestration layer that orchestrates between underlying service such as storage , parsing , anti virus scan etc. The requirement is to make the layer flexible so that different flows for…

redzedi
- 1,957
- 21
- 31
3
votes
3 answers
Are there some guidelines for identifying RabbitMQ queues for bounded context in DDD
I am about to make a Domain Driven Design arround RabbitMQ queue, and I am totally new to this. I would like to know if there are some guidelines for identifying the different queues considering the bounded contexts.
Stuffs like one queue per…

acmoune
- 2,981
- 3
- 24
- 41
3
votes
3 answers
Multi-threaded Event Dispatching
I am developing a C++ application that will use Lua scripts for external add-ons. The add-ons are entirely event-driven; handlers are registered with the host application when the script is loaded, and the host calls the handlers as the events…

Robert M
- 71
- 1
- 7
3
votes
4 answers
AXON framework synchronous response
I am new to AXON framework and are using it for our development. We have a requirement where command (command side) is created for the persisting data, for the same event is triggered which is consumed at query side. Now we need to have a response…

Jaspal
- 31
- 2
3
votes
1 answer
How to control idempotency of messages in an event-driven architecture?
I'm working on a project where DynamoDB is being used as database and every use case of the application is triggered by a message published after an item has been created/updated in DB. Currently the code follows this…

Juan Vega
- 1,030
- 1
- 16
- 32
3
votes
1 answer
Event driven design in a multiple project solution
I try to do an iOS application with Xamarin.ios. I have a server where I can send events to my App using websockets. But the functions to handle this events are implemented in another project.
So if the server sends a new event I want to tell the…

DerStarkeBaer
- 669
- 8
- 28
3
votes
2 answers
Design question on Python network programming
I'm currently writing a project in Python which has a client and a server part. I have troubles with the network communication, so I need to explain some things...
The client mainly does operations the server tells him to and sends the results of…

Manuel Faux
- 2,317
- 5
- 24
- 35
3
votes
0 answers
Does anyone know how to test EventListeners in spring?
I am looking into the spring domain event features in spring 4.2 and it looks really greate.
it is however, a bit messy to test.
Given the following business logic :
public DomainEvent CreateOrder(Order order) throws OrderRejectedException…

Hans Jacob Melby
- 85
- 7
3
votes
1 answer
event driven pattern for writing chunks to a file - JS
I'm trying to transfer a file over WebRTC, and I'm struggling to figure out a good pattern for writing data as it's coming in. Since file chunks will be coming in at an unknown rate, I need to be able to write each chunk as it becomes available;…

Hristo
- 45,559
- 65
- 163
- 230
3
votes
2 answers
Is this a decent Event Driven approach for a windows service?
I'm reading up on event-driven design. I am having trouble getting my head around some of it in practice. I'm considering using this for a windows service that monitors, parses, and handles information coming from a 3rd party TCP stream. Is the…
Daniel
3
votes
2 answers
C# Event Handlers Using an Enum
I have a StatusChanged event that is raised by my object when its status changes - however, the application needs to carry out additional actions based on what the new status is.
e.g If the new status is Disconnected, then it must update the status…

Jimbo
- 22,379
- 42
- 117
- 159
3
votes
1 answer
DDD - aggregate root identity usage across bounded context bounderies
One suggested way to model entity identities in a domain model is to create value objects instead of using primitive types (f.e. in C#):
public class CustomerId
{
public long Id { get; set; }
}
In my opinion this classes should be used throughout…

Sebastian
- 443
- 3
- 9
2
votes
1 answer
Retry logic when a partial update failed
I think that it is a general problem and it is not related with the using technologies. So, please consider the problem itself.
I am storing data in Couchbase like below format
productId is document id.
{
"size",
"colour",
"category",
…

javac
- 441
- 4
- 20