Topic
System Design interview problems
Scalable services, storage, caching and trade-offs. 1136 original problems, each with a worked model answer.
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-feedgeospatialApply Amdahl's law to a partially accelerated simulation, then explain GPU tiled matmul and the cost of virtual dispatch.
Model answeramdahls-lawgpumatmulcudaDesign 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-systemsWalk through triaging a production alert for elevated service latency, from confirming impact to investigating root causes and restoring service.
Model answerobservabilityincident-responseperformanceproductionDesign the client-server quota enforcement system for a mobile AI assistant, covering API contract, Android architecture, and multi-device synchronization.
Model answerrate-limitingandroidmobilereal-timeDesign 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 managementDesign 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-deliveryDesign an extensible rule evaluation system that validates expense reports against configurable business policies and returns a structured approval decision.
Model answerobject-oriented designextensibilitystrategy patternpythonDesign 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-injectionDesign 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 systemsDesign a distributed URL shortener handling billions of daily redirects with sub-50ms latency and decoupled, accurate click counting.
Model answerdistributed-systemscachingstream-processingDesign and implement a production-grade HTTP client that handles network failures, respects rate limits, and ensures safe retries.
Model answerapi-designerror-handlingdistributed-systemsDesign an ACID, idempotent, sharded banking ledger that supports transfers, paginated history, and merging one account into another under concurrent traffic.
Model answersystem-designdistributed-systemstransactionsidempotencyDesign a leaderboard that tracks millions of users' scores and serves rankings with sub-100ms latency at 50K writes/sec.
Model answerleaderboardredisshardinghigh-throughputDesign 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-tieringDesign a service that converts long URLs into compact codes and serves redirects at high throughput with low latency.
Model answerurl-shortenerdistributed-systemscachingscalabilityBuild 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-systemsmessagingscalabilityqueuesDesign a system where teams edit prompts collaboratively, snapshot immutable versions, run them against LLMs, and trace results back to exact inputs.
Model answercollaborationversioningasync-executionDesign 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-limitingDesign a system that collects, encrypts, and stores logs from distributed edge nodes into centralized storage while ensuring confidentiality and integrity.
Model answerdistributed-systemssecurityencryptiondata-pipelineWalk 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-systemskafkaownershipDesign 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-gatewayBuild 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-subwebsocketsBuild a system that delivers targeted ads with low latency, tracks engagement events, and supports deterministic A/B test assignment and analysis.
Model answerad-techexperimentationhigh-throughputcachingDesign 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-managementCoordinate 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-variablesmultithreadingExtend 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 APIPythonDesign 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-processingDesign a job scheduling system supporting one-time and recurring tasks, retries, and observability, then evolve it to handle 100x traffic growth.
Model answerdistributed-systemsschedulingfault-tolerancescalabilityDesign 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