KatInterview

Topic

System Design interview problems

Scalable services, storage, caching and trade-offs. 1130 original problems, each with a worked model answer.

Problems1130

43 easy719 medium368 hard

Showing 61–90 of 1130 results

  • 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.

    Model answersystem-designtime-seriesobservabilityingestion-pipeline
  • 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.

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

    Model answersystem-designdistributed-systemscalendartime-series
  • 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.

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

    Model answersystem-designpaymentsiframe-securitypostmessage
  • 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.

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

    Model answerdatabase-designschema-designsystem-designsql
  • 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.

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

    Model answersystem-designcachingdistributed-systemsapi-design
  • Design a backend for browsing eateries, posting star ratings and written reviews, and keeping aggregates, search, and moderation trustworthy at scale.

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

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

    Model answersystem-designdistributed-systemsjob-schedulerqueues
  • 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.

    Model answerpub-subnotificationsfan-outconcurrency
  • 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.

    Model answersystem-designidempotencyretriesmessage-queues
  • 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.

    Model answersystem-designweb-crawlerdistributed-systemsurl-frontier
  • 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.

    Model answersystem-designgeospatialconcurrencystate-machine
  • 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.

    Model answerml-system-designrecommendationreal-time-featuresranking
  • 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.

    Model answercppvirtual-functionscrtppolymorphism
  • 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.

    Model answerllm-agentstest-automationsandboxingworkflow-orchestration
  • 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.

    Model answersystem-designstreamingtimersidempotency
  • 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.

    Model answerkey-value-storereplicationpartitioninglsm-tree
  • 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.

    Model answersystem-designhigh-concurrencyredisidempotency
  • 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.

    Model answersystem-designlive-streamingcdnhls
  • 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.

    Model answeridempotencyretriescircuit-breakerdead-letter-queue
  • 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.

    Model answerrate-limitingdistributed-systemsredistoken-bucket
  • 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.

    Model answersystem-designstreamingaggregationtime-series
  • 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.

    Model answerdistributed-transactionstwo-phase-commitsagaidempotency
  • 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.

    Model answerragvector-searchml-system-designhybrid-retrieval
  • 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.

    Model answerfan-outwebsocketkafkareal-time
  • Architect a high-performance, distributed rate limiting system for an API gateway handling high-throughput, bursty traffic.

    Model answerrate-limiterdistributed-systemsapi-gatewayredis

More topics