Data Migration Strategies: Zero-Downtime Patterns, CDC, Dual Writes, and Proving Correctness
A practical guide to production data migration strategies—big-bang vs online migrations, expand/contract, dual writes, CDC, validation, cutover, and rollback. Includes runnable code, mermaid diagrams, and trade-offs commonly tested in system design interviews.
Event Sourcing
Design an event-sourced platform that stores immutable, append-only domain events as the system of record, scales to high write throughput, and serves low-latency reads via CQRS projections with reliable pub/sub distribution.
CQRS (Command Query Responsibility Segregation)
Design a CQRS-based backend that scales read and write workloads independently using a transactional command model and asynchronously updated read models. Covers event/CDC pipelines, projection correctness, caching, and consistency trade-offs at high scale.
Apache Kafka
Distributed streaming platform designed for high-throughput, real-time data pipelines and event-driven architectures
Message Brokers vs Event Logs
Comparing traditional message queues with log-based systems
