Skip to content
Tech Atlas, home
Search
Esc
  • All roadmapsBrowse every learning path
  • ExploreFind a technology area
  • ProjectsGuided projects and builds
  • My AtlasYour learning dashboard
Skill

Event Sourcing & CQRS

Implement event-sourced aggregates with projections, snapshots and versioned events, and run CQRS read models whose lag and rebuilds are designed rather than discovered in production.

Advanced1 roadmap

3 objectives 6 steps about 130 min

Check what you know

The lessons are coming later. The knowledge check is ready now.

Take the knowledge check

This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.

Learning objectives

  • Implement an event-sourced aggregate that rebuilds its state from its stream, appends new events with optimistic concurrency on the stream version, and uses snapshots only where replay time requires them.
  • Build CQRS projections that track their position in the event log, tolerate redelivery, can be rebuilt from scratch, and expose read-model lag to clients that need to read their own writes.
  • Evolve event schemas in an append-only store with upcasters or versioned event types, and handle personal-data erasure with crypto-shredding or personal data kept outside the events.

Lesson plan

6 steps, about 130 min · 0 of 5 lessons available so far

  1. State as a sequence of facts: streams, rehydration and concurrency Concept · 20 min · coming later
  2. An event-sourced account aggregate with snapshots Lab · 30 min · coming later
  3. Projections, checkpoints and rebuilding read models Concept · 20 min · coming later
  4. Living with lag: reading your own writes on the query side Worked example · 25 min · coming later
  5. Versioning immutable events and forgetting personal data Concept · 20 min · coming later
  6. Event sourcing check Knowledge check · 6 questions

Practise it

Implement an event-sourced account or order aggregate on an append-only store (a relational table or an event store) with two projections and a snapshot policy; show a concurrent append rejected on a version conflict, rebuild both projections from zero to the same result as the incremental run, and load a version-1 event through an upcaster after changing its schema.

References

Hard prerequisites

Unlocks

Nothing depends on this skill yet.

On these roadmaps

Progress and evidence for this skill are shared across all of them.