Ashniu123 / nestjs-customer-order-eventsourcing-cqrs

Nestjs project with simple customer and order cqrs using Kafka as EventBus
26 stars 5 forks source link

kafka and eventhandler #3

Open elvanichan opened 10 months ago

elvanichan commented 10 months ago

seem kafka is only send the event out. If the kafka queue lag 1000 msg, it will instantly send out by sequence but the consumer service will instantly receive and handle the events? if the handler needs to do some db transaction, it would have race condition?