Messaging System (Chat) Low-Level Design
6 min read Requirements One-on-one messaging and group chats (up to 500 members) Real-time message delivery (< 100ms), offline message storage, read receipts […] Read article
6 min read Requirements One-on-one messaging and group chats (up to 500 members) Real-time message delivery (< 100ms), offline message storage, read receipts […] Read article
6 min read What a CDN Does A Content Delivery Network caches content at edge Points of Presence (PoPs) geographically close to users, Read article
5 min read Core Idea Build a prefix array where prefix[i] = arr[0] + arr[1] + … + arr[i-1]. Then any range sum Read article
6 min read Upload Pipeline Raw video upload → object storage (S3 raw bucket) → message published to transcoding queue (SQS/Kafka) → transcoding Read article
6 min read Requirements Design a file storage system like Google Drive or Dropbox supporting: Upload and download files up to 50 GB Read article
6 min read Core Services A ride-sharing platform like Uber or Lyft decomposes into focused microservices: Location Service: ingests driver GPS pings, maintains Read article
7 min read Two Graph Models The first design decision is the relationship model: Directed graph (Twitter/Instagram follow): A follows B does not Read article
7 min read Design patterns appear in coding interviews in two ways: the interviewer asks you to implement a specific pattern, or you’re Read article
6 min read Typeahead search (also called autocomplete) is one of the most latency-sensitive features in a modern product. Users expect suggestions to Read article
6 min read An e-commerce platform touches nearly every backend concept that appears in system design interviews: relational data modeling, inventory consistency, distributed Read article
7 min read Stock trading dynamic programming problems are a classic interview cluster. Every variant – one transaction, unlimited, at most k, cooldown, Read article
8 min read A proximity service answers “find all restaurants / drivers / users within R km of this location” with low latency Read article
9 min read A ticket booking system like Ticketmaster must handle concurrent seat selection, hold expiry, payment confirmation, and flash sale traffic spikes. Read article
9 min read What is Interval DP? Interval DP is a dynamic programming pattern where you optimize over all sub-intervals of a range. Read article
8 min read Requirements A gaming leaderboard system must support: Update a player’s score in real-time (on match completion) Query a player’s current Read article