सिस्टम डिज़ाइन इंटरव्यू किट
सिस्टम डिज़ाइन का चरणबद्ध अभ्यास: अनुमान, लचीलापन पैटर्न, फिर URL शॉर्टनर और रेट लिमिटर से मैसेज क्यू, बुकिंग और LLM सर्विंग तक 15 संदर्भ डिज़ाइन।
सीखना
Back-of-Envelope Estimation and Capacity Model Template
पूर्णReference latency and unit tables, assumptions register, QPS, storage, bandwidth, cache, server and cost formulas, worked example, sensitivity, traceability
Jeff Dean latency numbers (LADIS 2009)Resilience and Load Shedding Design Template (Retries, Circuit Breakers)
पूर्णFailure model, deadlines, retries with jitter and budgets, circuit breakers, bulkheads, backpressure, criticality-based shedding, degradation, fault tests
Google SRE book ch. 21-22; Amazon Builders' LibrarySystem Design Document Template
पूर्णSystem design at scale – requirements, capacity estimates (KaTeX), API, data model, HLD, deep dives, reliability, cost, trade-offs
संदर्भ डिज़ाइन
URL Shortener System Design Template (Reference Design)
पूर्णCapacity (KaTeX), API, base62 key generation and collisions, 301 vs 302, caching, click analytics, abuse protection, custom aliases, expiry, multi-region
RFC 9110 (redirect status codes)Rate Limiter System Design Template (Reference Design)
पूर्णDistributed rate limiter: token bucket vs window algorithms, atomic Redis scripts, multi-region shares, 429 headers, fail-open
Distributed Key-Value Store System Design Template (Dynamo-Style)
पूर्णConsistent hashing, vnodes, quorums (R+W>N), vector clocks vs LWW, hinted handoff, Merkle anti-entropy, gossip, LSM compaction, cache eviction, hot keys
Dynamo (DeCandia et al., SOSP 2007)Distributed Message Queue System Design Template (Kafka-Style Log)
पूर्णPartitions, log segments, retention, acks and idempotence, consumer groups, offsets, delivery semantics, ordering, ISR replication, backpressure, DLQ, schemas
Apache Kafka 4.3 documentation; Kafka paper (NetDB 2011)News Feed System Design Template (Reference Design)
पूर्णSocial feed: hybrid fan-out on write and read, celebrity threshold, ranking pipeline, feed cache, snapshot pagination, media
Chat System Design Template (Reference Design)
पूर्णReal-time 1:1 and group chat: WebSocket gateways, per-conversation ordering, fan-out, receipts, offline sync, push, E2EE
Notification Service System Design Template (Reference Design)
पूर्णPush, email, SMS and in-app: templates, preferences and opt-out, priority queues, caps, provider failover, retries, dedup
Ticket and Hotel Booking System Design Template (Reference Design)
पूर्णSeat and room inventory, holds with TTL, overbooking math, conditional writes, idempotency, payment saga, waiting room, search vs booking paths
Search Autocomplete System Design Template (Reference Design)
पूर्णTypeahead: trie/FST/edge n-gram index, popularity and recency ranking, query-log pipeline, edge cache, latency budget, safety
Job Scheduler System Design Template (Reference Design)
पूर्णDistributed scheduler: cron, delayed and one-off jobs, leases and visibility timeouts, fencing, idempotent handlers, retries, DLQ
Payment Ledger System Design Template (Reference Design)
पूर्णPayments and double-entry ledger: idempotency keys, payment state machine, PSPs, outbox, reconciliation, audit, PCI DSS scope
Ride-Hailing Dispatch System Design Template (Reference Design)
पूर्णRide matching: location ingestion, H3/geohash index, batched matching, ETA, trip state machine, single assignment, surge note
Video Streaming System Design Template (Reference Design)
पूर्णVideo upload and ABR streaming: chunked transcoding, renditions ladder, CMAF HLS/DASH, CDN, DRM note, view counts, storage tiers
Collaborative Editing System Design Template (Reference Design)
पूर्णReal-time co-editing: OT vs CRDT, sequence CRDT, state-vector sync, presence, offline merge, snapshots and compaction, access
LLM Inference Serving and Vector Search Platform Design Template
पूर्णGateway, router, continuous batching, paged KV cache, GPU memory and throughput math, TTFT/TPOT SLOs, autoscaling, quantization, HNSW/IVF, cost per token
PagedAttention (Kwon et al., SOSP 2023)