Questions tagged [event-driven-design]

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.

241 questions
1
vote
1 answer

How multiple Kafka Consumers in the same consumer group read messages from one partition in the topic?

I would like to know about how the consumers in the same consumer group read the messages from one topic which has only one partition. For example, I have 3 consumers in one consumer group and that group is polling messages from Topic A which has…
K Bariya
  • 13
  • 2
1
vote
1 answer

What is the correct streaming pattern to replace database table polling?

I am trying to architect an event streaming system to replace our existing database table polling mechanism. We currently have a process where Application ABC will query/scan the entire XYZ (MySQL) table every 5 minutes so that we may get any…
1
vote
1 answer

Eventstore sort by partical stream

Im currently unable to create a new stream with a prefix, based on the other one. one example stream can be: person.admin Ive been searching around the documentations…
1
vote
0 answers

Processing CRUD events in event driven pipeline

I am converting a monolithic application which was handling CRUD events into multiple microservices. Each microservice being designed as kafka stream with specific function. Idea was to allow scaling each microservice individually. The challenge is,…
bhaskar
  • 11
  • 2
1
vote
1 answer

nodejs main thread and event loops, what is the difference between?

When http request hit into the Nodejs application the connect first received by Nodejs main thread (which is js main thread) and passed to event loop, if my understand is correct The event loop is what allows Nodejs to perform non-blocking I/O…
storm
  • 43
  • 8
1
vote
1 answer

Rest/Graphql apis and event driven architecture

I've been looking at the event driven architecture and it's seems it might be the right architecture for a project I'm working on. But there is one thing I don't really get yet, what is the best practice/common pattern when your micro services are…
user1445685
  • 793
  • 1
  • 11
  • 25
1
vote
1 answer

Event Driven Architecture - Response to Mobile/Web Clients

I have the following use case in my microservices User Experience: A contact details popup asking the user to confirm the contact details, email address & other relevant details on the UI. Once the user submits the data - The user should see contact…
user1843883
  • 159
  • 1
  • 7
1
vote
1 answer

Event driven architecture in monolith

I'm researching event-based architecture patterns, and in the context of the current project, I'm wondering, if it's acceptable to use an event bus in a monolithic application that supports context separation, in order to provide better isolation,…
3axap
  • 321
  • 2
  • 15
1
vote
2 answers

Data Dependency Among Microservices

In my microservices architecture, I have a bunch of services A, B, C, D etc. For ex: Service A is responsible for managing students. Service B is responsible for managing assessments, the student take. Service B stores the studentid in the tables…
KitKarson
  • 5,211
  • 10
  • 51
  • 73
1
vote
1 answer

How to implement Event-carried State Transfer?

I watched Mr. Martin Fowler's seminar on Event-Drivent Architecture. I see the benefits of Event-carried State Transfer but still haven't found a way to do it as he said. How can I copy data from this database to the database continuously, and can…
Lam Hoang
  • 23
  • 3
1
vote
1 answer

Expose public API for async system

We are now working on exposing our production Rest API to the outer world in order to allow the integration of different 3rd parties to our system. One of the issues we have, is that due to high scale and performance reasons, many of the API…
Eliranf
  • 43
  • 1
  • 4
1
vote
2 answers

Designing event-based architecture for the customer service

Being a developer with solid experience, i am only entering the world of microservices and event-driven architecture. Things like loose coupling, independent scalability and proper implementation of asynchronous business processes is something that…
1
vote
1 answer

How is CQRS Implemented and where is Read DB getting created

I have discovery service: https://github.com/Naresh-Chaurasia/API-MicroServices-Kafka/tree/master/Microservices-CQRS-SAGA-Kafka/DiscoveryService I have Product Service:…
1
vote
2 answers

Is it possible to implement transactional outbox pattern for only RabbitMQ publish fail scenarios

I have a system that uses mongoDB as persistence and RabbitMQ as Message broker. I have a challenge that I only want to implement transactional outbox for RabbitMQ publish fail scenarios. I'm not sure is it possible because, I also have consumers…
1
vote
1 answer

How to update table in the related microservices when entity is created in one microservices

I am learning a microservice architecture and have created 3 microservices. Each ms has its own database. Something like below, Business ms Customer ms Tax ms I designed it in the way by duplicating the Business table in all microservices.…