System Design: How to Design a Notification System (Outbox Pattern, Kafka Fan-Out & Idempotency)
How to send 10 million push notifications, emails, and SMS messages reliably without blocking your checkout API or double-charging users on retries.
How the real world actually works — everyday machines, physics, money, and hidden engineering. Drawn, one mechanism at a time, in the order the videos ship.
How to send 10 million push notifications, emails, and SMS messages reliably without blocking your checkout API or double-charging users on retries.
Why MD5 hashing causes collisions at scale, how Base62 + Redis range allocation generates billions of unique 7-character URLs with zero coordination locks, and when to use 301 vs. 302 redirects.
Why forward proxies protect internal clients from the internet, and how reverse proxies shield backend servers with SSL termination, caching, and load balancing.
Why automatic network retries cause catastrophic duplicate payments, and how distributed locks, unique UUID headers, and Redis response caching enforce exactly-once execution.
Why application dual-writes corrupt distributed systems, and how Debezium streams PostgreSQL Write-Ahead Logs (WAL) to Kafka for real-time cache and search index syncing.
Why synchronous Two-Phase Commit (2PC) fails in cloud microservices, and how the asynchronous Saga pattern coordinates distributed transactions with compensating rollbacks.
A deep dive into distributed consensus, linearizability, PACELC theorem, and choosing between immediate consistency and high-throughput low latency.
How to eliminate heavy file upload traffic from application servers by using AWS S3 Presigned URLs and asynchronous serverless event processing.
How Raft consensus, heartbeat timers, and majority quorum rules ensure only one node coordinates writes and prevent irreversible state divergence.
Why naive modulo hashing causes catastrophic cache stampedes when resizing clusters, and how the 360-degree hash ring bounds key remapping to K/N.