SkillSprout
Chapter 30

CQRS and Event Sourcing

CQRS splits a system into a write side and a read side so each can be built and scaled for its own job. Event sourcing stores every change as an event instead of only the current state.

1CQRS: Separating Reads and Writes
Advanced
4 min
2Event Sourcing: Storing Events, Not State
Advanced
4 min

Chapter quiz

CQRS and Event Sourcing · 5 questions

  1. 1.In CQRS, what is a command?

  2. 2.What is the main cost of separating the read and write databases in CQRS?

  3. 3.In event sourcing, what is the source of truth?

  4. 4.Why do you take snapshots?

  5. 5.An event was recorded with a wrong amount. What is the correct fix in event sourcing?

0 of 5 answered