Skip to main content
PreparationZone Logo
PrepZone

CQRS and Event Sourcing Intro

When to split read and write models in LLD discussions.

Pass checkpoint below

Read these first

Why this matters

  • Command vs query — detailed pointwise breakdown in the section below.
  • Projections — detailed pointwise breakdown in the section below.
  • Event store sketch — detailed pointwise breakdown in the section below.
  • When not to — detailed pointwise breakdown in the section below.
  • Games and architecture patterns signal staff+ depth.
Command
Event storeAppend-only log
Read projection
Commands write events; projections build read models from the log.

Overview

When to split read and write models in LLD discussions. Study each section below in order — every list is interview-ready reference material.

Command vs query

Points to cover

  • Definition — what Command vs query means in one clear sentence
  • When to use — the force or smell that triggers this concept
  • CampusOS example — where this appears in parking, booking, or library modules
  • How to explain — pointwise bullets you can say aloud in an interview
  • Common mistake — what weak candidates do instead
  • Refactor move — one concrete change that improves the design

The rest of this guide is part of Pro

Free covers every fresher guide in full. Pro unlocks Senior, Staff and Architect guides across every track.

Still to come · 3 sections

  • Projections
  • Event store sketch
  • When not to

Test yourself

Answer these before moving on — recall is what makes it stick.