Chapter 2 — Event Streaming, CQRS & Event Sourcing
Purpose
[stub: event-streaming-cqrs]
Metadata
| Author | Amit Singh |
| Scope | system-design |
Local graph
Linked from 3 notes
12 — CQRS — Command Query Responsibility Segregation
Separate the write model (commands) from the read model (queries). Unlocks independent scaling, optimised projections, and eventual-consistency trade-offs at scale.
13 — Event Sourcing
Store state as an immutable, append-only sequence of domain events. Current state is derived by replaying the log. Gives audit trail, temporal queries, and projection flexibility for free.
System Design
Principal/Staff-level system design reference collection for MAANG interview preparation — observability pipelines, distributed systems, reliability engineering, and beyond.
Related notes
Chapter 1 — Message Brokers
Kafka, Pulsar, RabbitMQ, and SQS compared on delivery guarantees, ordering, and operational model, not just throughput benchmarks.
Chapter 3 — Workflow Systems
Temporal and Cadence's durable-execution model as the answer to long-running, failure-resistant business processes that outlive any single process.
Chapter 4 — Alerting Systems
Multi-window burn-rate alerts, recording rules, routing, and deduplication as the difference between an actionable page and noise.
Chapter 3 — Monitoring at Scale
Prometheus, Mimir, Cortex, and Thanos as the horizontally-scaled answer to a single Prometheus instance running out of room.