High-Level Design
18 postsDistributed systems, scalability, and architecture.
Asked at Amazon, Google, Netflix +3
·16 min read
Caching Strategies: The Bet That Reads Repeat
Asked at Meta, Amazon, Netflix +3
·13 min read
CDNs: Move the Bytes to the User, Not the User to the Bytes
Asked at Cloudflare, Akamai, Fastly +3
·16 min read
The API Gateway: One Front Door for a Hundred Services
Asked at Netflix, Amazon, Uber +2
·15 min read
SQL vs NoSQL: Model the Access Pattern, Then Pick the Store
Asked at Amazon, Google, Netflix +3
·15 min read
Database Indexing: Why B-Trees Read Fast and LSM-Trees Write Fast
Asked at Amazon, Google, Meta +3
·13 min read
Database Replication: Copies That Disagree With Each Other
Asked at Amazon, Google, Meta +3
·15 min read
Database Sharding: When One Machine Stops Being Enough
Asked at Amazon, Google, Meta +3
·16 min read
Storage Engines: LSM-Trees vs B-Trees
Asked at Google, Meta, Amazon +3
·14 min read
Message Queues & Event Streaming: Stop Making Users Wait for Work They Don't Care About
Asked at Amazon, LinkedIn, Netflix +3
·17 min read
Rate Limiting: How a Bucket of Tokens Keeps Your API Alive
Asked at Stripe, Cloudflare, GitHub +2
·16 min read
Real-Time Updates: Polling, Long Polling, SSE, and WebSockets
Asked at Slack, Discord, WhatsApp +3
·16 min read
CAP Theorem: The Choice You Only Make When the Network Breaks
Asked at Amazon, Google, Microsoft +3
·12 min read
Consensus & Leader Election: How a Cluster Agrees on One Truth
Asked at Google, Amazon, Microsoft +3
·17 min read
Raft, Driven: Watch a Cluster Elect, Replicate, and Heal
Asked at Google, Amazon, Microsoft +4
·20 min read
Distributed Transactions: When One Business Action Spans Many Services
Asked at Amazon, Uber, DoorDash +3
·17 min read
Idempotency: How to Retry a Payment Without Charging Twice
Asked at Stripe, Amazon, PayPal +3
·15 min read
Bloom Filters: The Yes/No That Saves a Disk Seek
Asked at Google, Amazon, Meta +3
·12 min read