Topic
System Design interview problems
Scalable services, storage, caching and trade-offs. 1137 original problems, each with a worked model answer.
43 easy724 medium370 hard
Showing 631–660 of 1137 results
Design a distributed service that tracks the most-viewed content items over a rolling one-hour window at 100K events/sec, serving ranked results with low latency.
Model answerstream-processingdistributed-systemsapproximation-algorithmsAssess user experience, identify weak product areas through metrics, and debug suspected issues in a livestream shopping application.
Model answerproduct-analyticsdebuggingmetricsfunnel-analysisFix defects in an existing Django REST API so that a suite of automated tests covering search, filtering, ordering, and error handling all pass.
Model answerdjangodebuggingrest-apiquerysetsDesign a billing platform that authorizes funds, captures final amounts in batches, reconciles against processor settlements, and guarantees no customer is ever charged twice.
Model answerpaymentsidempotencyreconciliationstate-machineDesign a quota enforcement service that handles millions of checks per second across many tenants, covering APIs, consistency trade-offs, hot-key handling, and billing accuracy.
Model answerrate-limitingdistributed-systemsconsistencyshardingDesign the algorithm and surrounding system that ensures every show tile visible on a streaming home page appears at most once, across all rows and columns.
Model answerdeduplicationpage-assemblygreedysystem-designDesign an enterprise RAG system over millions of private documents: hybrid retrieval, reranking, cited generation, strict tenant/ACL isolation, and a 60-second freshness budget.
Model answerragretrievalsystem-designaccess-controlDesign an instruction scheduler for a 4-issue VLIW core with mixed-latency functional units, covering hazard detection, register pressure, loop pipelining, and latency sensitivity.
Model answercompiler-backendinstruction-schedulingvliwpipeline-hazardsDesign a fault-tolerant intermediary service that processes charge requests from sellers, coordinates with an external payment provider, and maintains a consistent transaction ledger.
Model answerdistributed-systemsidempotencyfault-tolerancefinancial-systemsBuild a backend that records employee time punches, computes hours worked per pay cycle, calculates wages, and handles burst traffic and external data feeds.
Model answerbackendscalabilitydata-modelingapi-designDesign a real-time ride-hailing backend that ingests driver pings, matches riders without double-booking, and runs an idempotent, fault-tolerant trip state machine.
Model answersystem-designgeospatialdistributed-systemsstate-machineDesign a distributed system that ingests millions of tagged metric data points per second, enforces cardinality safety, tiers storage by age, and serves dashboard queries under 500 ms.
Model answermetricstime-seriesdistributed-systemsobservabilityMove rows from a relational database into a NoSQL key-value store with a consistent one-time snapshot followed by ongoing CDC replication from the write-ahead log.
Model answerchange-data-capturedata-migrationdistributed-systemsidempotencyDesign four backend systems: a deduplicated event counter, an immutable driver-pay ledger, a fault-tolerant offboarding workflow, and a permission-gated LLM expense assistant.
Model answerevent-drivenworkflow-orchestrationLLMledgerDesign a booking service for rental vehicles: availability search, temporary holds, confirmation, cancellation, concurrency control, and double-booking prevention.
Model answerconcurrencyinventory-managementdistributed-systemsDesign a real-time multilingual voice role-play practice feature: content model, session state machine, low-latency audio pipeline, offline mode, personalization, scaling and privacy.
Model answersystem-designspeechlow-latencymultilingualDesign a system that accepts a target URL, a future timestamp, and a JSON payload, then reliably delivers that payload via HTTP at the scheduled time.
Model answersystem-designschedulingqueuesreliabilityDesign a high-throughput system that ingests courier ratings and serves a low-latency top-K leaderboard under eventual consistency.
Model answerleaderboardrediskafkaaggregationDesign a system that ingests untrusted mobile app reviews at scale and produces safe, LLM-generated theme digests for internal product teams.
Model answerllmprompt-injectionpiipipelineDesign a distributed scheduling service that fires one-time and recurring jobs on time, at scale, without losing a single task across node failures or clock drift.
Model answerdistributed-systemsschedulingfault-tolerancequeuesDesign a thread-safe key-value store that tracks how many operations occurred in any recent time window, without storing one entry per request.
Model answerconcurrencymetricsring-bufferkey-value-storeDesign a fault-tolerant engine that runs multi-step service workflows with ordering, retries, compensation, and exactly-once side effects.
Model answerworkflow-orchestrationdistributed-systemsidempotencysaga-patternDesign a home-repair hiring product embedded in a major social platform, covering user segmentation, trust mechanics, marketplace dynamics, and success metrics.
Model answerproduct designmarketplacetrust and safetymetricsBuild a scalable backend to track health status for millions of IoT devices sending periodic check-ins and quickly identify unresponsive units.
Model answerdistributed-systemsreal-timeiotscalabilityBuild a non-blocking API and worker system to crawl millions of files across cloud storage accounts with progress tracking and fault tolerance.
Model answerasync-jobsdistributed-systemsscalabilityBuild a distributed system to run scheduled and recurring tasks at scale with latency SLAs and full execution traceability.
Model answerdistributed-systemsschedulingreliabilityobservabilityDesign a transaction ledger handling 50k TPS with ACID guarantees, choosing between monolith and microservices and between sharding and replication.
Model answerdistributed-systemsdatabase-scalingconsistencymicroservicesDesign a near-real-time, sharded full-text search layer over large structured tables with sub-200ms reads and petabyte scale.
Model answersearchshardingcdcconsistencyDesign two systems: a multi-publisher article feed with ranking and client-adaptive APIs, and a temporary email service that generates human-looking addresses with guaranteed uniqueness at scale.
Model answerapi-designcachingdistributed-systemsemailEvaluate trade-offs between real-time communication approaches and demonstrate understanding of network protocol layers and modern transport mechanisms.
Model answernetworkingprotocolsreal-timearchitecture