Topic
System Design interview problems
Scalable services, storage, caching and trade-offs. 1133 original problems, each with a worked model answer.
43 easy720 medium370 hard
Showing 271–300 of 1133 results
Design a client library that spreads LLM calls across several vendors, enforcing limits, isolating failures, and choosing providers by cost and latency while staying thread-safe and observable.
Model answercircuit-breakerrate-limitingload-balancingretriesDesign a scalable backend architecture for product likes on a wholesale platform, handling dual-access querying, search result enrichment, counter aggregation, and brand metrics.
Model answersystem-designdata-modelingcachingscalabilityPlan how to build, test and safely release a streaming chat panel in a React dashboard, covering state, request races, token expiry, accessibility, feature flags and rollback.
Model answerreactstreamingfrontend-architecturetestingDesign an API metadata service on Kubernetes and Cassandra featuring exact-once unique name constraints, soft-delete state transitions, and high-performance read strategies.
Model answersystem-designcassandrakubernetesdistributed-systemsDesign a backend for a multiplayer typing race where a mistyped key freezes input for 1.5 seconds, covering match servers, matchmaking, ratings, latency fairness and failure recovery.
Model answerreal-timewebsocketmatchmakingleaderboardDesign a layered Android client for an LLM chat app covering streaming, cancellation, retries, offline history, immutable UI state, and lifecycle and process-death handling.
Model answerandroidmvvmkotlin-coroutinesstateflowDesign a managed AWS platform where customers fine-tune open-weight LLMs on their own data, with isolation, budgets, resumable distributed training, evaluation and endpoint deployment.
Model answerml-system-designllm-fine-tuningawsdistributed-trainingDesign an embeddable single-node key-value storage engine providing durability, high write throughput, crash recovery, and single-key transactions.
Model answerstorage-enginelsm-treewalconcurrencyArchitect a high-throughput stream processing pipeline to track top-10 global and per-city merchants over a 60-minute trailing window with low latency.
Model answersystem-designstream-processingleaderboardsliding-windowDesign a service where enterprise tenants upload files up to 5 GB, which are processed asynchronously into versioned reconciliation reports, with resumable uploads, idempotent jobs, and strict isolation.
Model answersystem-designmultipart-uploadidempotencyasync-processingDesign a natural-language item recommendation endpoint backed by an LLM: request flow, prompt and output schema, retrieval, hallucination and injection controls, evaluation, and monitoring.
Model answerllmragprompt-engineeringhallucinationAdd exact, prefix and shared-prefix KV reuse with a token-budgeted LRU to a toy LLM server, cutting prefill cost while every greedy output stays unchanged.
Model answerkv-cachellm-inferencetrielru-cachePlan an inference platform for 100M daily users: estimate traffic, memory, compute and bandwidth, pick hardware, control tail latency, and handle GPU out-of-memory failures.
Model answerml-inferencecapacity-planninggpu-servingtail-latencyDesign a telemetry backend that ingests about 1M samples per second from many services, answers aggregate queries fast, runs alerts, and keeps data cheaply for months with tenant isolation.
Model answertime-seriesingestiondownsamplingcardinalityDesign a platform that ingests a million telemetry points per second, keeps 30 days of history, and serves dashboard aggregations in under half a second while staying highly available.
Model answersystem-designtime-seriesingestion-pipelinestorageAnalyze thread vs. process execution models at the kernel, memory, and hardware level, and design a low-latency execution topology for an order book trading engine.
Model answermultithreadingmultiprocessingoperating-systemslow-latencyDesign the backend for a conversational voice agent that listens, reasons and speaks in near real time, serves thousands of simultaneous callers, and handles users cutting in mid-reply.
Model answerreal-timestreaminglatencyspeechDesign a scalable platform that collects logs from many services, stores them durably with retention, supports filtered search, survives traffic spikes, and isolates tenants.
Model answersystem-designloggingobservabilitykafkaArchitect a multi-tenant ad server and analytics engine that reliably serving ads, deduplicates metrics, and aggregates cross-campaign performance stats.
Model answersystem-designdistributed-systemsevent-drivenad-techApply every transform chain to every photo, in order, with deterministic output names, no repeated decoding, and a design that parallelizes cleanly.
Model answerparallelismbatch-processingimage-processingmultiprocessingExplain how Python generators suspend and resume execution to stream data lazily, and how decorators wrap functions, including a correct wrapper that preserves metadata.
Model answerpythongeneratorsdecoratorslazy-evaluationDesign a platform that pulls articles from many external publishers and serves each of millions of daily users a ranked, tailored feed in under 200ms, while staying up when sources fail.
Model answersystem-designrecommendationrankingcachingDesign a low-latency, highly available service that scores each payment attempt using analyst-owned rules plus ML models and returns an explainable approve, block, step-up, or review verdict.
Model answersystem-designfraud-detectionfeature-storerules-engineDesign an asynchronous system that aggregates quotes across hundreds of vendor APIs to find the best price for an ISBN, places an order within a target bid, and manages payment consistency.
Model answersystem-designdistributed-systemsfault-toleranceconcurrencyPlan the verification of three small digital blocks (a FIFO, a round-robin arbiter and a valid/ready link) covering testbench structure, random stimulus, assertions and coverage.
Model answerdesign-verificationsystemverilogscoreboardassertionsAnalyze a buggy payment handler, explain why database transactions fail to solve distributed state issues, and design a resilient flow using idempotency and background reconciliation.
Model answersystem-designdistributed-systemsidempotencypaymentsDesign a scalable backend architecture for real-time AI token streaming featuring resume capability, low latency, prompt cancellation, and fault isolation.
Model answersystem-designstreamingllmredisDecode a 48-bit virtual address under 4-level paging, trace a load through a TLB miss and page walk to an L1 hit, and say where read permission is checked.
Model answervirtual-memorytlbpage-tablecpu-cacheArchitect a scalable, high-availability URL shortener capable of handling heavy read workloads, instant redirects, custom aliases, and automated TTL cleanup.
Model answersystem-designdistributed-systemscachingdatabase-designDesign a daily pipeline that turns streaming subscription events into month-end churn and retention metrics, tolerating late data, safe reruns, 12-month backfills, and changing metric definitions.
Model answeretlidempotencyscd-type-2late-arriving-data