KatInterview

Topic

System Design interview problems

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

Problems1136

43 easy723 medium370 hard

Showing 721–750 of 1136 results

  • Build a mobile service that captures GPS workouts offline, uploads them reliably, and powers a social feed of followers' activities.

    Model answermobile-firstoffline-syncsocial-feedgeospatial
  • Apply Amdahl's law to a partially accelerated simulation, then explain GPU tiled matmul and the cost of virtual dispatch.

    Model answeramdahls-lawgpumatmulcuda
  • Design a concurrent in-memory tagging system with correct multi-index atomicity, then architect a scalable bookstore handling high-read browsing and consistent purchases.

    Model answerconcurrencyobject-oriented-designdistributed-systems
  • Walk through triaging a production alert for elevated service latency, from confirming impact to investigating root causes and restoring service.

    Model answerobservabilityincident-responseperformanceproduction
  • Design the client-server quota enforcement system for a mobile AI assistant, covering API contract, Android architecture, and multi-device synchronization.

    Model answerrate-limitingandroidmobilereal-time
  • Design a real-time system that suggests safe activities during airport layovers while guaranteeing travelers never miss their connecting flights.

    Model answerreal-time systemsrecommendation systemsmobile architecturerisk management
  • Design the server-side core of an enterprise chat product: APIs, storage, idempotent and ordered message delivery, versioned membership access control, and real-time fan-out at scale.

    Model answermessagingidempotencystoragereal-time-delivery
  • Design an extensible rule evaluation system that validates expense reports against configurable business policies and returns a structured approval decision.

    Model answerobject-oriented designextensibilitystrategy patternpython
  • Design an OO Minesweeper where each cell carries an independent mine probability, covering initialization, class model, click/print APIs, state transitions, and testability.

    Model answerobject-oriented-designstate-machineflood-filldependency-injection
  • Design the analytics data model for a remote vehicle assistance function and an end-to-end pipeline for measuring autonomous fleet stability.

    Model answerdata modelingpipelinestelemetryreal-time systems
  • Design a distributed URL shortener handling billions of daily redirects with sub-50ms latency and decoupled, accurate click counting.

    Model answerdistributed-systemscachingstream-processing
  • Design and implement a production-grade HTTP client that handles network failures, respects rate limits, and ensures safe retries.

    Model answerapi-designerror-handlingdistributed-systems
  • Design an ACID, idempotent, sharded banking ledger that supports transfers, paginated history, and merging one account into another under concurrent traffic.

    Model answersystem-designdistributed-systemstransactionsidempotency
  • Design a leaderboard that tracks millions of users' scores and serves rankings with sub-100ms latency at 50K writes/sec.

    Model answerleaderboardredisshardinghigh-throughput
  • Design an end-to-end pipeline to ingest, validate, store, and query multi-modal sensor streams from a large fleet of autonomous robots at 20 GB/s aggregate throughput.

    Model answerstreamingtime-seriesdata-pipelinestorage-tiering
  • Design a service that converts long URLs into compact codes and serves redirects at high throughput with low latency.

    Model answerurl-shortenerdistributed-systemscachingscalability
  • Build a platform that routes millions of messages per day across email, SMS, and mobile push, handling both real-time triggers and scheduled campaigns.

    Model answerdistributed-systemsmessagingscalabilityqueues
  • Design a system where teams edit prompts collaboratively, snapshot immutable versions, run them against LLMs, and trace results back to exact inputs.

    Model answercollaborationversioningasync-execution
  • Design a system that tracks website page views over a rolling 60-second window and serves the current count with low latency at high traffic volumes.

    Model answerstreamingrediskafkarate-limiting
  • Design a system that collects, encrypts, and stores logs from distributed edge nodes into centralized storage while ensuring confidentiality and integrity.

    Model answerdistributed-systemssecurityencryptiondata-pipeline
  • Walk through a production system you owned end to end — requirements, architecture, data model, scaling, consistency trade-offs, failure modes, and observability — and defend every decision under follow-up questions.

    Model answersystem-designdistributed-systemskafkaownership
  • Design a shared proxy that sits between internal microservices and pay-per-call APIs, cutting spend through caching, request collapsing, batching, and budget enforcement.

    Model answercachingrate-limitingmicroservicesapi-gateway
  • Build a streaming architecture to deliver current stock quotes to millions of users with sub-second latency and graceful degradation under load.

    Model answerreal-time systemsstreamingpub-subwebsockets
  • Build a system that delivers targeted ads with low latency, tracks engagement events, and supports deterministic A/B test assignment and analysis.

    Model answerad-techexperimentationhigh-throughputcaching
  • Design a user-authenticated key-value store where values are encrypted at rest using the user's password, covering key derivation, storage layout, and cryptographic trade-offs.

    Model answercryptographyauthenticationkey-management
  • Coordinate three threads with a shared lock and condition variable so they emit the interleaved sequence 0,1,0,2,0,3,… up to n.

    Model answerconcurrencysynchronizationcondition-variablesmultithreading
  • Extend a Python starter script into a terminal chat agent that uses LLM function calling to search flights, register a passenger, and confirm a booking via a three-endpoint REST API.

    Model answerLLMtool-callingREST APIPython
  • Design a fault-tolerant distributed pipeline that transposes a multi-terabyte float matrix using tiled partitioning, idempotent workers, and verifiable completion tracking.

    Model answerdistributed-systemsobject-storagefault-tolerancebatch-processing
  • Design a job scheduling system supporting one-time and recurring tasks, retries, and observability, then evolve it to handle 100x traffic growth.

    Model answerdistributed-systemsschedulingfault-tolerancescalability
  • Design an embedded append-only log writer that handles thousands of concurrent producers, batches writes efficiently, and recovers cleanly from crashes.

    Model answerwrite-ahead logconcurrencydurabilitygroup commit

More topics