Skip to main content

Part V β€” Distributed systems, messaging, realtime & scale

Goal. Move from one logical node to many. Learn the laws of distribution (failure, time, consistency, CAP/PACELC, replication, partitioning, consensus) after you know what single-node ACID guarantees you're trading away. Make idempotency and delivery semantics non-negotiable before touching a broker, then learn queues/background jobs, Kafka/log-based streaming and event-driven architecture, realtime backends, and the scalability + performance building blocks that turn correctness into capacity.

Milestone. You can reason honestly about consistency and consensus; design idempotent, retry-safe operations; decouple systems with queues, logs, events, and realtime channels; and scale horizontally with evidence (capacity estimation, percentiles, bottleneck analysis) rather than vibes.

Pulsely increment. Distributed β€” split into services over a broker; a claims/eligibility pipeline with a transactional outbox and idempotent consumers; a Kafka clinical-event log; realtime messaging with critical-value alerts; load-tested and scaled out statelessly.

Chapters 23. Distributed Systems Theory I: Failure, Time, Consistency, CAP/PACELC 24. Distributed Systems Theory II: Replication, Partitioning, Consensus 25. Idempotency, Delivery Semantics & the Exactly-Once Myth 26. Queues & Background Processing 27. Log-Based Streaming & Event-Driven Architecture (Kafka) 28. Realtime & Streaming Backends: WebSockets, SSE, Scaling Stateful Connections 29. Scalability Building Blocks 30. Performance Engineering & Tail Latency