NodeJS Microservices + CQRS + Event Sourcing — Why Do I Do This?
summary
Describes building Node.js microservices using CQRS and Event Sourcing to produce a replayable audit log for debugging and dispute resolution. Implementation combines Kafka streams, MongoDB snapshots and Winston logging to deliver replayable events for reproducing bugs at scale, while noting operational costs and tradeoffs like duplicated models, library failures, missing Kafka topics, eventual-consistency delays, and the need for deployment and automated topic-creation scripts plus a service template to make it work.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:40CQRS and Event Sourcing
- 8:47Event Sourcing basics
- 15:57Event Sourcing in practice
- 20:49Event Sourcing challenges
- 25:45Logging in event-driven
- 28:16When Event Sourcing fails
- 31:48Implementation tips
- 35:28Q&A
related talks
01h 25mBuilding microservices with event sourcing and CQRS
17m7 Reasons why your microservices should use Event Sourcing & CQRS
46mMicroservices Data Patterns: CQRS & Event Sourcing
56mDeveloping Event-driven Microservices w/Event Sourcing and CQRS
55m7 Reasons why your microservices should use Event Sourcing & CQRS
58mImplementing Event-driven Microservices
40m7 Reasons why your microservices should use Event Sourcing & CQRS
40mClean Microservices Communications with CQRS and Event Sourcing
