KatInterview

practice a little every day — you've got this ♡

System Design Interview Problems

Practice 5969 original coding, SQL, system design, machine learning and behavioral problems across 15 topics. Coding and SQL problems run against hidden test cases right in your browser; every problem has hints and a worked solution, free.

5969
Problems
2211
Auto-graded
15
Topics
272
Added today

Showing 61–90 of 1131 results

  • System DesignMediumModel answer
    Topic-Based Article Aggregator: Crawling, Dedup, and Feed Serving

    Design a service that polls tens of thousands of external publishers, stores articles without duplicates, and serves topic timelines with stable pagination under 50ms p99.

    System Designsystem-designschedulingdeduplicationcaching
  • System DesignMediumModel answer
    Build a Multi-Tenant Time-Series Telemetry Backend

    Design a horizontally scalable telemetry backend that ingests millions of labeled data points per second, stores 30 days of history, and serves fast label-filtered range queries.

    System Designsystem-designtime-seriesobservabilityingestion-pipeline
  • System DesignHardModel answer
    Live Courier Fleet Tracking and ETA Platform Design

    Design an end-to-end platform that streams courier GPS, computes routes and ETAs, manages order assignment, and powers live maps for dispatchers and customers.

    System Designsystem-designstreamingkafkageospatial
  • System DesignMediumModel answer
    Design an Enterprise Calendar System

    Architect a scalable calendar service handling interval-based queries, concurrent updates, recurring schedules, and real-time user invitations.

    System Designsystem-designdistributed-systemscalendartime-series
  • System DesignMediumModel answer
    Exact Top-1,000 Terms Across a Petabyte of Text Files

    Design a distributed batch pipeline that exactly counts term occurrences across petabytes of immutable text and returns the 1,000 most common, handling skew, split edges and retries.

    System Designdistributed-systemsmapreducefault-tolerancedata-skew
  • System DesignMediumModel answer
    Secure Embedded Bank-Transfer Checkout Component Design

    Design a merchant-embeddable bank-payment checkout component: isolated iframe, safe parent-frame messaging, token exchange, asynchronous settlement, and webhook reliability at high scale.

    System Designsystem-designpaymentsiframe-securitypostmessage
  • System DesignMediumModel answer
    Diagnosing a Latency or Throughput Regression in a Microservice Fleet

    Describe a disciplined, evidence-driven method for finding and fixing a slowdown in a multi-service system, from first signals through safe validation to long-term prevention.

    System Designobservabilitydebugginglatencydistributed-tracing
  • System DesignHardModel answer
    Data Model for Course Reviews, Aggregates, and Moderation

    Design an online course review system covering completion checks, transactional rating aggregates, edit histories, and keyset-paginated read paths.

    System Designdatabase-designschema-designsystem-designsql
  • System DesignMediumModel answer
    Aggregating Three Upstream Services with Graceful Degradation

    Design a startup endpoint that resolves a user's internal ID, fans out to two dependent services, and still returns useful data when optional services fail or run slowly.

    System Designapi-designresiliencetimeoutspartial-failure
  • System DesignMediumModel answer
    Design an Aggregated Flight Search Engine

    Design a large-scale flight search engine that aggregates dynamic fares from multiple third-party sources under low latency constraints.

    System Designsystem-designcachingdistributed-systemsapi-design
  • System DesignMediumModel answer
    Build a Restaurant and Dish Rating Service End to End

    Design a backend for browsing eateries, posting star ratings and written reviews, and keeping aggregates, search, and moderation trustworthy at scale.

    System Designsystem-designreviewssearchmoderation
  • System DesignMediumModel answer
    CPU Microarchitecture and Memory System: Ten-Topic Review

    Explain ten core architecture topics: OoO pipelines, gshare, register renaming, VLIW, coherence, load/store logic, COW, cache math, VIPT aliasing, and async FIFOs.

    System Designcomputer-architectureout-of-ordercachesbranch-prediction
  • System DesignMediumModel answer
    Design a 100x Scalable Distributed Task Scheduler

    Architect a flexible background job system capable of scaling 100-fold using partitioned time indices, hierarchical timing wheels, and resilient worker leasing.

    System Designsystem-designdistributed-systemsjob-schedulerqueues
  • System DesignHardModel answer
    Build a Topic-Based Notification Fan-Out Engine

    Design an object-oriented service that pushes news to topic subscribers with at-most-once delivery, effective unsubscribes and per-user per-topic ordering, scaling to millions of users.

    System Designpub-subnotificationsfan-outconcurrency
  • System DesignMediumModel answer
    Building a Reliable Multi-Channel Alert Pipeline With Safe Retries

    Design an alert platform that never silently drops a message, tolerates retries and reordering, and keeps users from seeing repeats across push, email, SMS and in-app channels.

    System Designsystem-designidempotencyretriesmessage-queues
  • System DesignMediumModel answer
    Build a Distributed Crawler for Billions of Pages

    Design a distributed system that discovers, fetches and stores web pages at scale while avoiding repeats, honoring site rules, throttling per host, and surviving failures.

    System Designsystem-designweb-crawlerdistributed-systemsurl-frontier
  • System DesignMediumModel answer
    Pooled Rideshare Dispatch: Matching, Booking and Live Tracking

    Design a backend that pools riders into shared vehicles, matches within 2 seconds at 10k requests/s, prevents double-booking, and streams vehicle positions to riders.

    System Designsystem-designgeospatialconcurrencystate-machine
  • System DesignMediumModel answer
    Build a Live-Now Highlights Feed for a Streaming Marketplace

    Design the ML system around an existing scoring model to rank currently active livestreams in a shopping app, covering signals, retrieval, rules, serving, and verifying a stream is still on air.

    System Designml-system-designrecommendationreal-time-featuresranking
  • System DesignMediumModel answer
    Runtime Polymorphism vs Static Polymorphism in C++

    Describe how virtual functions are typically implemented in C++, then weigh them against CRTP-based static polymorphism and say when each design is the better fit.

    System Designcppvirtual-functionscrtppolymorphism
  • System DesignMediumModel answer
    Designing an LLM-Driven Test Automation Platform for Pull Requests

    Design a multi-agent system that turns specs and diffs into reviewed tests, runs them in isolation, repairs broken scripts, and separates script faults from real product regressions.

    System Designllm-agentstest-automationsandboxingworkflow-orchestration
  • System DesignHardModel answer
    Designing a Production Stall Detector for Streaming Jobs

    Design a distributed service that watches start, heartbeat and end messages per job and emits exactly one stall signal when a deadline passes, covering time semantics, sharding, recovery and testing.

    System Designsystem-designstreamingtimersidempotency
  • System DesignMediumModel answer
    Build a Durable, Replicated Key-Value Store Step by Step

    Design a store with put, get and delete that starts as a single-node storage engine and grows into a partitioned, replicated cluster with defined consistency and failure handling.

    System Designkey-value-storereplicationpartitioninglsm-tree
  • System DesignHardModel answer
    Limited-Stock Flash Sale Platform with Zero Oversell

    Design a platform that sells a fixed number of seats or units to millions of simultaneous buyers, with no oversell, no double charge, and graceful behavior under failure.

    System Designsystem-designhigh-concurrencyredisidempotency
  • System DesignMediumModel answer
    Build a Large-Scale Live Video Broadcasting Service

    Design a platform where creators broadcast live video to millions of viewers with low delay, adaptive quality, real-time chat, stream discovery, and replay after the stream ends.

    System Designsystem-designlive-streamingcdnhls
  • System DesignMediumModel answer
    Keeping Courier Payouts Correct When the Processor Is Flaky

    Design a payout pipeline that stays correct and pays each courier exactly once when the downstream payment processor is slow, erroring, or down for hours.

    System Designidempotencyretriescircuit-breakerdead-letter-queue
  • System DesignMediumModel answer
    Building a Request Throttling Service That Scales Across Regions

    Design a service that decides per caller whether each API request is allowed, then scale it to many users and regions and make its limits more accurate, discussing the trade-offs.

    System Designrate-limitingdistributed-systemsredistoken-bucket
  • System DesignMediumModel answer
    Build a Fleet-Wide Error Frequency Tracking Platform

    Design a shared platform that ingests error logs from many apps, collapses similar messages into one signature, and answers count, trend and top-N queries reliably during incident spikes.

    System Designsystem-designstreamingaggregationtime-series
  • System DesignHardModel answer
    Atomic Updates Across Orders, Payments and Inventory Services

    Design a protocol that keeps writes consistent across several services and databases, comparing 2PC, 3PC and Sagas, and covering failures, retries, timeouts and delivery guarantees.

    System Designdistributed-transactionstwo-phase-commitsagaidempotency
  • System DesignHardModel answer
    Enterprise Document Q&A with Retrieval and Generation at Scale

    Design an end-to-end, multi-tenant retrieval-augmented question-answering platform over large, mixed-format document collections, with strict isolation, freshness, latency and cost targets.

    System Designragvector-searchml-system-designhybrid-retrieval
  • System DesignMediumModel answer
    Real-Time Chat for Mass-Audience Livestreams

    Design a chat feed for livestreams where one broadcast may have over a million viewers, with sub-half-second delivery, durable storage and live moderation.

    System Designfan-outwebsocketkafkareal-time