System design guides
Real systems, from rate limiters and distributed systems to data infrastructure.
130 guides · Newest first · Updated
- Shopping Cart System Design: Guest Merges, Price Changes and Stock HoldsGuest cart merges on login, price and stock changes, short stock holds and reminder jobs. One festive fashion sale runs through it.System design · 23 min read ·
- Coupon System Design: Single-Use Codes, Stacking Rules and AbuseUnguessable codes, single-use redemption that survives concurrent requests, stacking rules and coupon farming.System design · 19 min read ·
- Geofencing System Design: Matching Moving Phones Against Millions of FencesCell and R-tree indexes, exact point-in-polygon checks, enter, exit and dwell events, hysteresis and battery-aware phones.System design · 22 min read ·
- Flight Search System Design: Fare Caching and Why Fares Vanish at CheckoutFare caching against supplier rate limits, look-to-book ratios, the price check at booking and NDC offers.System design · 20 min read ·
- Link Preview System Design: Unfurling URLs Safely with SSRF DefencesHow an app fetches an untrusted URL, blocks SSRF by resolving, checking and pinning IP addresses, caches previews per URL and handles robots.txt and privacy.System design · 27 min read ·
- Image Pipeline System Design: Resizing, Formats, Cache Keys and Signed URLsPrecomputed vs on-the-fly resizing, AVIF and WebP negotiation, cache keys, original storage and HMAC-signed transform URLs.System design · 23 min read ·
- Auction System Design: Proxy Bids, Anti-Sniping and a Consistent Top BidProxy bids and increments, bid storms near the close, anti-sniping soft close, race-free top bids in PostgreSQL and Redis, and safe closing.System design · 30 min read ·
- Bot Detection System Design: Signals, Risk Scores and Tiered ResponsesThe signals worth collecting, how a risk score picks between allow, throttle, challenge and block, where fingerprinting meets privacy limits, and how to measure false positives.System design · 29 min read ·
- Facebook TAO Explained: Objects, Associations and Leader-Follower CachingHow objects and associations model the social graph, how leader and follower cache tiers sit over sharded MySQL and what eventual consistency cost.System design · 26 min read ·
- Classifieds Marketplace System Design: Expiry, Geo Search and Scam ChecksListing lifecycle and expiry, nearby search with PostGIS and Redis, search index sync, duplicate and scam checks, seller ratings and paid boosts.System design · 26 min read ·
- Google Cloud's October 2026 London Outage Explained: Why Backup Power FailedWhy the backup generators never started, how one zone's loss slowed the region, and how to design and test for zone failure.System design · 19 min read ·
- Near-Duplicate Detection: Shingles, MinHash, SimHash and LSH at ScaleShingles, Jaccard similarity, MinHash, SimHash, LSH banding and thresholds.System design · 28 min read ·
- Columnar Databases Explained: Why Analytics Queries Read Less DataColumn storage, dictionary and run-length compression, row groups with min-max statistics, vectorised execution and why single-row writes are slow.System design · 21 min read ·
- Subscription Billing System Design: Proration, Dunning and Grace PeriodsPlans and entitlements, proration maths on upgrades and downgrades, dunning retries, grace periods, webhooks and RBI e-mandate rules.System design · 22 min read ·
- GitHub's October 2026 Actions Outage Explained: A Retry Storm on a Shared LinkThe reconnect storm, the shared network link it overloaded and the rate limit left in shadow mode, shown on a runnable simulation.System design · 22 min read ·
- Feature Flag System Design: Sticky Rollouts, Safe Defaults and Kill SwitchesTargeting rules, sticky percentage rollouts, local evaluation, outages, kill switches and flag debt.System design · 24 min read ·
- Presence System Design: Heartbeats, Last Seen, Fan-Out and PrivacyHeartbeats and TTL keys for online status, last seen without a write storm, contact fan-out and privacy rules.System design · 25 min read ·
- Splitwise System Design: LLD for Splits, Balances and Debt SimplificationGroups, expenses, three split rules in paise, net balances and greedy debt simplification.System design · 23 min read ·
- Trending Topics System Design: Count-Min Sketch, Top-K and Time DecayCount-Min Sketch counting, top-k lists, time decay, per-city boards and keeping bots out.System design · 25 min read ·
- The 2017 AWS S3 Outage Explained: One Typo, Four HoursThe mistyped command, why it spread, why recovery was slow and what AWS changed.System design · 23 min read ·
- Backpressure Explained: Slowing Producers Before Queues ExplodeWhy queues blow up when producers outrun consumers, and how bounded queues, pull, load shedding and 429s fix it, built on one running SMS gateway example.System design · 20 min read ·
- Batch vs Stream Processing Explained: Late Data, Lambda and KappaDaily jobs, live windows, late data and watermarks, and the Lambda and Kappa architectures.System design · 25 min read ·
- Blob Storage Design: How an S3-Style Store Keeps Files SafeChunks, metadata, copies, erasure coding and repair.System design · 25 min read ·
- Calendar System Design: Recurring Events and Time ZonesRecurring events as rules, exceptions, time zones, daylight saving, reminders and week views.System design · 24 min read ·