System Design Study Guides

    Interview-ready walkthroughs for 45 classic problems — scope, requirements, estimation, API design, and deep dives.

    Web Apps

    Real-Time & Messaging

    Storage & Data

    Geo & Location

    Streaming & Pipelines

    AI & Machine Learning

    ML Inference (Model Serving)
    Full doc

    Real-time inference with model versioning, A/B testing, and low-latency feature retrieval.

    GenAI / RAG Architecture
    Full doc

    Empower LLMs with private data using vector embeddings and semantic search.

    Production-Grade IDP Pipeline
    Full doc

    Turn documents (PDFs, scans, faxes, email) into trusted structured data at scale — using an LLM ensemble, deterministic auto-verification, and confidence-calibrated field-level routing to keep humans off the critical path even at ~80% single-model accuracy.

    ML Training Pipeline
    Full doc

    End-to-end pipeline from data ingestion to model validation and registration.

    Visual Search System (Pinterest)
    Full doc

    Search by image using deep feature extraction, high-dimensional indexing, and re-ranking.

    Harmful Content Detection
    Full doc

    Multi-modal system (text + image + video) to detect and flag policy violations in real-time.

    Video Recommendation System (YouTube)
    Full doc

    Candidate generation (Retrieval) followed by deep ranking to optimize for click-through and watch-time.

    Ad Click Prediction
    Full doc

    Low-latency CTR prediction for real-time bidding and ad placement.

    Gmail Smart Compose
    Full doc

    Real-time text completion using Sequence-to-Sequence models with ultra-low latency constraints.

    ChatGPT / LLM System
    Full doc

    Distributed serving of massive models (175B+ parameters) with low-latency streaming.

    Text-to-Image (Stable Diffusion)
    Full doc

    Latent Diffusion models serving thousands of concurrent generation requests.

    Street View Blurring System
    Full doc

    High-throughput image processing pipeline to detect and blur faces and license plates.

    People You May Know (LinkedIn/FB)
    Full doc

    Graph-based recommendation system using "friend-of-friend" signals and node embeddings.

    Google Translate (NMT)
    Full doc

    Many-to-many language translation using Encoder-Decoder Transformers.

    Text-to-Video Generation
    Full doc

    Massively distributed video synthesis using Spatio-Temporal Diffusion models.

    Recommendation & Ranking System
    Full doc

    Two-stage pipeline: cheap candidate generation over millions of items, then an expensive ranking model scores the shortlist for relevance.

    CTR / Ads Prediction System
    Full doc

    Real-time scoring of ad candidates by predicted click probability, under a hard sub-100ms latency budget, feeding directly into an auction that decides what gets shown.

    Real-Time Fraud Detection
    Full doc

    A hybrid rules-plus-model pipeline that scores every transaction in real time, balancing catching fraud against the cost of wrongly blocking legitimate customers.

    ML Feature Store
    Full doc

    The infrastructure layer underneath every other ML system in this pass — a single source of truth for features, serving both a slow offline (training) path and a fast online (serving) path, with point-in-time correctness as the hard constraint that connects them.

    Infrastructure