Building Microservices: Using Node.js with DDD, CQRS, and Event Sourcing — Part 2 of 2

Qasim Soomro
9 min readMar 30, 2019

tl;dr: I aim to help you learn and apply CQRS and event sourcing using a modern approach.

Part 1:

Part 2:

The big picture

Commands flow diagram

Building microservices requires thinking about the holistic view. It is important to understand the topologies that make up the microservice architecture, as well as the rules that are implied. What does that mean? One way to think of it is to understand all domains within a given application and subdivide and conquer by service boundaries.

Microservices should completely align with their bounded contexts that represent a given domain — and are to be loosely-coupled and highly cohesive.

In Part 1, we discussed the DDD, CQRS, and event sourcing patterns that are used in my example project. Hopefully, you…

--

--