High-Level Design (HLD / Distributed Systems)
Distributed systems and large-scale architecture interview preparation. Fundamentals (CAP, consistency, replication), building blocks (caches, queues, databases), and full system designs across FAANG, EU, and regional interview styles.
01The HLD Interview Framework
MidNot started
The HLD Interview Framework
The canonical 4-step approach (requirements → estimation → high-level design → deep dive), capacity-estimation method, time budgeting, and how FAANG / EU / regional styles differ.
01The canonical 4-step HLD framework.Mid02Questions to ALWAYS ask before designing (functional + non-functional + scale).Mid03How to do capacity estimation: DAU → QPS, storage, bandwidth.Senior02CAP Theorem, PACELC, Consistency Models
SeniorNot started
CAP Theorem, PACELC, Consistency Models
CAP stated correctly, the PACELC extension, the consistency spectrum (linearizable → eventual), ACID vs BASE, and quorum reads/writes.
01State CAP correctly. What does Partition tolerance really mean?Senior02PACELC — what does it add to CAP?Senior03Consistency models from strongest to weakest.Senior03Replication & Partitioning (Sharding)
SeniorNot started
Replication & Partitioning (Sharding)
Single-leader / multi-leader / leaderless replication, sync vs async, replication lag, sharding strategies, consistent hashing, resharding, and hot partitions.
01Single-leader replication — why is it the default? Failure modes?Senior02Multi-leader and leaderless (Dynamo-style) replication.Senior03Replication lag — handling read-your-writes consistency.Senior04Caching Strategies
SeniorNot started
Caching Strategies
Cache layers, the four caching patterns, eviction policies, cache stampede mitigation, invalidation, Redis vs Memcached, and two-tier (L1/L2) caching.
01Where to cache: client, edge, application, database — trade-offs.Mid02Cache-aside vs read-through vs write-through vs write-behind.Senior03Thundering herd / cache stampede — detection and mitigation.Senior05Message Queues & Event Streaming
SeniorNot started
Message Queues & Event Streaming
Queue vs log, delivery guarantees, ordering, backpressure, dead-letter queues, the outbox pattern, and CDC. RabbitMQ vs Kafka.
01Queue vs log — the conceptual difference (RabbitMQ vs Kafka).Senior02At-most-once, at-least-once, exactly-once — what each guarantees.Senior03Kafka partitions and consumer groups — how is per-partition ordering guaranteed?Senior06Database Choices — SQL vs NoSQL
SeniorNot started
Database Choices — SQL vs NoSQL
When to choose relational, document, key-value, wide-column, graph, search, or time-series stores, and the cost of polyglot persistence.
01RDBMS strengths and weaknesses — when are they the right answer?Mid02Document, key-value, wide-column, graph, search, time-series — when to choose each.Senior03Polyglot persistence — pros, cons, operational cost.Senior07API Design — REST, gRPC, GraphQL, WebSockets
MidNot started
API Design — REST, gRPC, GraphQL, WebSockets
REST principles and idempotency, REST vs gRPC vs GraphQL, real-time options (WebSockets/SSE/long polling), versioning, and pagination.
01REST principles and idempotency — which methods are idempotent and why it matters for retries.Mid02REST vs gRPC vs GraphQL — when to use each.Senior03WebSockets vs SSE vs long polling for real-time.Mid08Rate Limiting & Throttling (HLD perspective)
SeniorNot started
Rate Limiting & Throttling (HLD perspective)
Distributed rate limiting with Redis, per-user/IP/key granularity, edge vs application limits, the API-gateway role, and 429 + Retry-After.
01Why is distributed rate limiting hard? (Shared state.)Senior02Redis-based distributed limiter — INCR + EXPIRE.Senior03Edge vs application-level limiting and the API-gateway role.Senior09Load Balancing
MidNot started
Load Balancing
L4 vs L7, balancing algorithms, consistent hashing for cache-aware routing, sticky sessions, health checks, and LB redundancy.
01L4 vs L7 load balancing — what can L7 do that L4 cannot?Mid02Round-robin vs least-connection vs weighted vs consistent hashing.Mid03Health checks, sticky sessions, and what happens when the LB itself fails.Senior10Microservices, Service Mesh, API Gateway
SeniorNot started
Microservices, Service Mesh, API Gateway
Monolith vs microservices vs modular monolith, service discovery, API gateway, service mesh, distributed tracing, and the Saga + outbox patterns.
01What problems do microservices solve — and cause?Senior02Modular monolith vs microservices — when to choose each.Senior03API gateway, service mesh, and service discovery responsibilities.Senior11Storage Systems — Disk, RAM, Object Storage
SeniorNot started
Storage Systems — Disk, RAM, Object Storage
The storage hierarchy and latency numbers, B-trees vs LSM-trees, row vs columnar storage, object/block/file storage, and tiered hot/warm/cold data.
01Latency numbers every engineer should know.Mid02B-tree vs LSM-tree — read vs write trade-offs, write amplification.Senior03Row vs columnar storage — OLTP vs OLAP.Senior12CDN & Edge
MidNot started
CDN & Edge
What a CDN does, edge cache invalidation, edge compute, anycast vs DNS geo-routing, HTTP/2-3, and TLS termination at the edge.
01What does a CDN actually do? When is it essential?Mid02Cache invalidation at the edge — TTL, purge, surrogate keys.Senior03Edge compute, anycast vs DNS geo-routing, and TLS termination.Senior13Observability — Logging, Metrics, Tracing
SeniorNot started
Observability — Logging, Metrics, Tracing
The three pillars, structured logging, metric types, distributed tracing with OpenTelemetry, and SLI/SLO/SLA with error budgets.
01The three pillars: logs, metrics, traces — what each gives you.Mid02Metrics: counter, gauge, histogram, summary — when to use each.Senior03Distributed tracing — trace propagation, spans, sampling, OpenTelemetry.Senior14Design a URL Shortener (TinyURL / bit.ly)
MidNot started
Design a URL Shortener (TinyURL / bit.ly)
The most common HLD warm-up. ID-generation strategies, SQL vs NoSQL choice, caching, custom URLs, and analytics — with FAANG / EU / regional variants.
01Design a URL shortener — full system-design solution.Mid15Design Twitter / Threads (Social Feed)
SeniorNot started
Design Twitter / Threads (Social Feed)
Timeline generation (pull / fan-out-on-write / hybrid), feed ranking, the celebrity (hot-user) problem, media storage, and caching layers.
01Design Twitter / a social feed — full system-design solution.Senior16Design a Chat / Messaging System (WhatsApp / Telegram)
SeniorNot started
Design a Chat / Messaging System (WhatsApp / Telegram)
1:1 and group chat, online presence, delivery/read receipts, media, WebSocket vs polling, and sharding by chat ID.
01Design a chat / messaging system — full system-design solution.Senior17Design a Ride-Sharing System (Uber / Lyft)
SeniorNot started
Design a Ride-Sharing System (Uber / Lyft)
Geospatial indexing (geohash / S2 / H3), driver-rider matching, surge pricing, real-time location tracking, and payment integration.
01Design a ride-sharing system — full system-design solution.Senior18Design Instagram / Photo-Sharing
SeniorNot started
Design Instagram / Photo-Sharing
Feed generation, image storage and delivery (S3 + CDN), thumbnails, stories (24h TTL), likes/comments at scale, and hashtag search.
01Design Instagram — full system-design solution.Senior19Design Netflix / YouTube (Video Streaming)
SeniorNot started
Design Netflix / YouTube (Video Streaming)
Video encoding pipeline, adaptive bitrate streaming (HLS/DASH), CDN delivery, recommendations, and view counting at scale.
01Design Netflix / YouTube — full system-design solution.Senior20Design a Notification Service (at scale)
SeniorNot started
Design a Notification Service (at scale)
Channel abstraction, template service, user preferences, a delivery queue with retries and DLQ, per-channel rate limiting, and provider failover.
01Design a notification service at scale — full system-design solution.Senior21Design a Web Crawler
SeniorNot started
Design a Web Crawler
URL frontier (priority + dedup), politeness (robots.txt, per-domain rate limit), DNS caching, content storage, duplicate detection, and distributed coordination.
01Design a web crawler — full system-design solution.Senior22Design a Search Autocomplete / Typeahead
SeniorNot started
Design a Search Autocomplete / Typeahead
Trie data structure, prefix caching, top-K suggestions, ranking by popularity/personalization, and the trend-update pipeline.
01Design search autocomplete / typeahead — full system-design solution.Senior23Design a Distributed Key-Value Store (Dynamo-style)
SeniorNot started
Design a Distributed Key-Value Store (Dynamo-style)
Consistent hashing, virtual nodes, replication, vector clocks, read repair, Merkle trees, gossip, and sloppy quorum.
01Design a Dynamo-style distributed key-value store — full system-design solution.Senior24Design a Distributed Job Scheduler (Cron at Scale)
SeniorNot started
Design a Distributed Job Scheduler (Cron at Scale)
Job queue, worker assignment, leader election (Zookeeper/etcd), missed-run handling, distributed locks, idempotency, and monitoring.
01Design a distributed job scheduler — full system-design solution.Senior25Design Google Docs / Collaborative Editor
SeniorNot started
Design Google Docs / Collaborative Editor
Operational Transformation vs CRDTs, real-time sync over WebSockets, presence, cursor sharing, version history, and offline editing.
01Design Google Docs / a collaborative editor — full system-design solution.Senior26Design a Payment System
SeniorNot started
Design a Payment System
Idempotency keys, distributed transactions via Saga, reconciliation, double-entry bookkeeping, fraud hooks, and processor integration (Stripe/Click/Payme model).
01Design a payment system — full system-design solution.Senior27Design an Exam Prep Platform (PrepHub-style)
SeniorNot started
Design an Exam Prep Platform (PrepHub-style)
Exam session management, real-time scoring, leaderboards, payment integration, content delivery, and anti-cheat/proctoring — an end-to-end real-system case.
01Design an exam-prep platform — full system-design solution.Senior28How to Practice HLD
MidNot started
How to Practice HLD
How many problems to solve, the internalizable template, per-section time-boxing, handling "I don't know" gracefully, and how to signal senior.
01How many problems, what template, and how to signal senior in an HLD round.Mid