System design guides
Real systems, from rate limiters and distributed systems to data infrastructure.
130 guides · Newest first · Updated
- Design a Stock Trading App: Order Matching and Market DataOrder matching, crash-safe engines, market data and pre-trade checks.System design · 26 min read ·
- Transaction Isolation Levels: From Dirty Reads to Write SkewA plain-English guide to transaction isolation levels and the anomalies each one allows, from dirty reads to write skew, built on one running hall booking example.System design · 24 min read ·
- Design a Web Crawler: Politeness, Dedup and the URL FrontierThe URL frontier, politeness rules and de-duplication.System design · 27 min read ·
- How ZooKeeper Works: Znodes, Watches and ZABA plain-English guide to how ZooKeeper works, from znodes and watches to leader election and the ZAB protocol, built on one running batch-job scheduler example.System design · 25 min read ·
- LLD: Design an ATM, With Transactions and Failure StatesA beginner-friendly low-level design of an ATM in Java, covering classes, states, the withdrawal flow and every failure state, built on one running example of a white-label ATM fleet.System design · 18 min read ·
- LLD: Design a Car Rental SystemThe classes, the date overlap rule, reserving without double booking, states, database guards and one-way trips.System design · 25 min read ·
- Chess LLD: Design a Chess Game in Java, Pieces to CheckmateJava classes for pieces, board, moves, legal-move checks, special moves, draws and perft testing.System design · 30 min read ·
- Cricket Scoreboard LLD: Overs, Wickets and Live Updates in JavaThe Java classes for overs, extras, wickets, strike, undo and live updates.System design · 28 min read ·
- LLD: Design an Elevator SystemThe classes, the LOOK scheduling rule, the state pattern and a dispatcher in runnable Java.System design · 20 min read ·
- Apache Flink: Watermarks and Exactly-Once StreamsA plain-English guide to Flink watermarks, late events and exactly-once results after a crash, built on one running example of a live city-wide running leaderboard.System design · 26 min read ·
- Frontend Error Monitoring: Catching Crashes on Millions of PhonesHow apps catch crashes on phones and browsers, send them home, decode them and group them.System design · 26 min read ·
- How GFS and HDFS Work: Chunks, One Master, Relaxed RulesA plain-English guide to how GFS and HDFS store huge files as replicated chunks under one master, built on one running film archive example.System design · 27 min read ·
- Hotel Management LLD: Rooms, Bookings and BillingThe classes, half-open stays, a per-night free-room check, booking states and a Java folio for checkout.System design · 29 min read ·
- Library Management LLD: Members, Loans and FinesPlans, copies, loans, late fines, holds, renewals and database guards against double issues.System design · 26 min read ·
- Meeting Scheduler LLD: Overlaps, Rooms and Clean ClassesOverlap checks, fast clash lookup, room choice and safe booking.System design · 28 min read ·
- Movie Ticket Booking LLD: Design the Classes and Seat LocksThe classes, where seat status lives, expiring holds and per-show locks in Java.System design · 28 min read ·
- Design a Collaborative Workspace Like Notion: The Block ModelThe block data model, saving and live sync, sharding and permissions.System design · 25 min read ·
- LLD: Design a Parking Lot (Classes, States, Walkthrough)Classes, spot states, safe spot claims across gates, fees and the interview walkthrough.System design · 27 min read ·
- Why Consensus Is Hard: FLP, Two Generals and PaxosThe Two Generals and Byzantine Generals problems, the FLP impossibility result and how Paxos works.System design · 25 min read ·
- Design a Price Tracker: Polling, Alerts and CachingAdaptive polling, polite fetching, caching, price history and alerts that never repeat.System design · 27 min read ·
- Design a Q&A Site Like Quora: Questions, Answers and RankingStorage, vote counting, answer ranking, duplicate questions, search and the feed.System design · 29 min read ·
- LLD: Design a Restaurant Ordering SystemClasses, table and dish states, a fair kitchen queue, duplicate-order guards and exact bills.System design · 22 min read ·
- LLD: Design an Online Stock Brokerage, With Orders and PortfoliosClasses, order states, cash and share holds, portfolio updates and watchlists.System design · 20 min read ·
- UML for LLD Interviews: Class and Sequence DiagramsThe symbols, the six relationships, one sequence diagram and the Java they become.System design · 24 min read ·