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
1
vote
1 answer
Cross Region Events Routing and Spring Cloud Stream & Spring Cloud Data Flow
I am using AWS as a Cloud provider. I have a Microservice that is in Frankfurt Region and will publish events to a Kinesis Data stream in the same region using Spring Cloud Stream (SCDF) Kinesis Adapter. I have multiple Microservices in different…

user3792889
- 79
- 9
1
vote
1 answer
Learning path question for reactive programming and event driven architecture
I'm a java spring boot microservices developer who's more or less comfortable with multi-threading/parallel and asynchronous programming although never had the opportunity to really master it. Same with messaging services like JMS or Rabbit MQ.
I'm…

Kingshuk Mukherjee
- 97
- 2
- 9
1
vote
0 answers
Have a unique Kafka ksqlDB event when a new MAX value occurs in a materialized view
Getting confused with ksqlDB events and materialized views. I want to be notified in a dedicated topic / stream when a new high stock price occurs as determined in a table aggregate / materialized view but I'm getting the high price reported for…

SciGuyMcQ
- 993
- 6
- 21
1
vote
0 answers
Should frontend application know about distributed transaction (saga) state?
we have a bunch of spring webservices and a angular application in frontend
i am trying to implement choreography based saga, where a http req from frontend application to one of the service and the service will update its database and raise kafka…

Introvert
- 76
- 8
1
vote
1 answer
How to produce messages with consecutive numbers with Kafka?
Context: invoicing system, the sent invoices must have consecutive numbers.
Each invoice has a unique invoice number, for sake of simplicity let's say they are I1, I2, I3, and so on. So, the first invoice in the system has the number I1, and it gets…

Eduard Kukuy
- 11
- 3
1
vote
1 answer
Designing a scalable backend system that triggers events based on time values
I am trying to understand a system design where events are triggered based on certain time or expiration of a time values and these time values can be in the millions. I was researching something else and I stumbled upon this problem and now I am…

Guru
- 916
- 3
- 12
- 22
1
vote
3 answers
Where to apply business logic in EventSourcing
In eventsourcing, I am having bit confusion on where exactly have to apply Business logic? I have already searched in google, but all examples are very basic ie., Updating state of an object inside Handler from an event object, but in my other…

john
- 925
- 1
- 12
- 20
1
vote
1 answer
Foreign key constraint in mirco-service-oriented architecture
Given the following two microservices, product and shopping-cart, which are connected to an event-bus.
Whenever a product gets created, updated or deleted, an event is emitted so that the shopping-cart microservice can update its copies of the…

Glains
- 2,773
- 3
- 16
- 30
1
vote
1 answer
Name of "notification-and-check" pubsub architecture?
Basic pubsub architecture question. At a high level, when designing pubsub, I sometimes face a choice between two architectures:
Publish mutations or "new-state".
Some DB state is mutated, and publishers notify of that change via pubsub. But they…

bhh1988
- 1,262
- 3
- 15
- 30
1
vote
1 answer
Command model classes shared between Command and Event classes in CQRS
In my current Monolithic application using EventSourcing and CQRS with Java, we have a seperate write and read models.
package com.command;
class Address{ //class created in Command Write model
String address;
}
package com.command;
import…

john
- 925
- 1
- 12
- 20
1
vote
1 answer
How to make Spring cloud stream Kafka streams binder retry processing a message if a failure occurs during the processing step?
I am working on Kafka Streams using Spring Cloud Stream. In the message processing application, there may be a chance that it will produce an error. So the message should not be commited and retried again.
My application method -
@Bean
public…

shreyas.k
- 181
- 1
- 2
- 15
1
vote
1 answer
Retrieve data from an event driven system
I´m currently developing a system which has the requirement to work asynchronous, so i decided it was time to give event driven architecture a go. Most of the functionality is CRUD
The different parts is:
An UI which communicates with an API…

frisk0k
- 157
- 1
- 1
- 11
1
vote
1 answer
Keeping services in sync in a kafka event driven backbone
Say I am using Kafka as the event-driven backbone for all my microservices in my system design. Many microservices use the events data to populate their internal databases.
Now there is a requirement where I need to create a new service and it uses…

Gitesh Khanna
- 130
- 9
1
vote
1 answer
Kafka with Domain Events
In my event driven project I have messages of type Commands and in response I have Events.
These Commands and Events messages express the domain so they hold complex types from the domain.
Example:
RegisterClientCommand(Name,…

jakstack
- 2,143
- 3
- 20
- 37
1
vote
1 answer
Event Driven Architecture - How can it be more efficient?
I am trying to understand how event driven architecture is more efficient than traditional architecture. Of course it is loosely coupled.
Lets imagine this. We have 2 spring-boot microservices.
micro-service-A raises an event and micro-services-B…

RamPrakash
- 2,218
- 3
- 25
- 54