Topic
System Design interview problems
Scalable services, storage, caching and trade-offs. 1135 original problems, each with a worked model answer.
43 easy722 medium370 hard
Showing 751–780 of 1135 results
Design a distributed ticketing platform that handles high search traffic, prevents duplicate seat bookings, and survives payment service failures.
Model answerconcurrencydistributed-systemsconsistencydatabasesDesign a system that enforces per-post audience rules across feed and permalink reads at high QPS while staying correct under friendship and privacy-setting changes.
Model answeraccess-controlcachingsocial-graphfeed-systemDesign a distributed database that separates compute from storage, detailing how writes are committed durably, how a failed node recovers, and how quorum keeps the write path moving under slow or failed storage nodes.
Model answerdistributed-systemsdurabilityreplicationquorumWork through receiver architectures, impedance matching, PLLs, VCOs, op-amp noise, and charge-pump non-idealities as a structured oral exam.
Model answeranalog-designRFPLLoscillatorsArchitect a multi-region data layer for a global payments platform that balances low-latency reads, strongly consistent money movement, and graceful regional failover.
Model answerdistributed-systemsdata-replicationconsistencytransactionsDesign a platform that executes agent tasks safely in enterprise environments, balancing model autonomy with workflow constraints and permission checks.
Model answeragentsplatform-architecturesecuritylatencyDesign an autocomplete service that delivers personalized query suggestions with sub-50ms latency, handling millions of concurrent users and live trend updates.
Model answerautocompletelow-latencydistributed-systemscachingDesign the backend that manages subscriptions, handles recurring charges, processes plan changes mid-cycle, and retries failed payments at scale.
Model answersubscriptionspaymentsbillingstate-machinesBuild a backend that tracks player scores, displays global and friend rankings, shows a player's position with nearby competitors, and supports multiple time periods.
Model answerleaderboardhigh-throughputcachingreal-timeDesign a scalable chat platform with channels and DMs supporting millions of users, sub-200ms delivery, message ordering, presence, and cross-device history sync.
Model answerreal-time-messagingwebsocketsscalabilitypub-subWrite a Python function that waits for two CSS-selected elements to become visible on a JS-rendered page and returns their text, with None for any that time out.
Model answerseleniumbrowser-automationexplicit-waitspythonDesign a crypto order-routing service that fronts unreliable third-party exchange APIs with async fills, exactly-once effects, spiky load, and a durable ledger.
Model answersystem-designdistributed-systemsidempotencystate-machinePick a rider or driver pain point, propose an AI-powered solution, and define how you'd measure whether it actually works.
Model answerproduct designAI/MLmarketplacemetricsDesign a system that attaches viewer comments to specific moments on a video timeline, staying synchronized across live watching, replay, seeking, and reconnection.
Model answerreal-timestreamingdistributed-systemsfanoutDesign a real-time direct messaging platform supporting message ordering, delivery receipts, offline notifications, and multi-device sync at marketplace scale.
Model answerwebsocketsmessagingdistributed-systemsreal-timeDesign a validation and reconciliation pipeline that enforces order-book correctness across a set of loosely coupled databases with different freshness guarantees.
Model answerfinancial systemsdata validationreconciliationevent-drivenDesign a read-time estimation feature for a cloud document editor: model, validation strategy, system architecture, and success metrics.
Model answerproduct-designestimationmachine-learningmetricsExplain how a C++ mutex enforces exclusive access, how locking works under contention, and how to correctly guard a multi-threaded shared counter.
Model answerconcurrencycppthreadingDesign a high-throughput pipeline that ingests behavioral events, deduplicates them, and serves accurate activity counts over 1-minute, 1-hour, and 24-hour sliding windows.
Model answerstreamingtime-seriesaggregationdeduplicationDesign the backend for a multi-user document editor supporting concurrent edits, offline sync, conflict resolution, history, and per-note scaling.
Model answerreal-timecollaborationwebsocketscrdtBuild a cache that recognizes semantically equivalent inputs, avoids redundant expensive computation when similar requests arrive concurrently, and keeps outputs consistent.
Model answercachingconcurrencyembeddingsdistributed-systemsDesign a sub-5ms latency pipeline that ingests multi-exchange trade ticks, maintains running VWAP aggregates with correction support, and fans out to tens of thousands of subscribers.
Model answerstreamingfinancial-datalow-latencypub-subExplain pointers vs references, vtable-based dispatch internals, and the override specifier, then diagnose three bugs in a polymorphic sensor class hierarchy.
Model answerc++polymorphismmemory-managementImplement a cyclic barrier from a mutex and condition variables where N threads block until all arrive, then release together and reset for the next round.
Model answerconcurrencysynchronizationthreadingmutexDesign a low-latency pipeline that blends organic search results with sponsored content, balancing user engagement and revenue at 50k QPS.
Model answerrankingadssearchmulti-stage-funnelDesign a Spark/MapReduce pipeline that computes rolling 15-minute concurrent meeting counts and room utilization from a large-scale event log.
Model answerbig-datasparkmapreducewindowed-aggregationDesign a safety-first, ML-driven order generation system with deterministic validation gates, idempotent execution, and a fully replayable audit trail.
Model answeragentic-systemsfinancial-infrastructurerisk-managementaudit-loggingDesign an aggregator that answers queries over a rolling one-year window of ad clicks, ingesting from an existing logging API rather than a real-time stream.
Model answeraggregationdata-pipelinestimeseriesdeduplicationDesign an acceptance strategy for non-deterministic test output, then build a classification scheme that goes beyond pass/fail to drive precise triage.
Model answerQAregression testingtest reliabilitydefect triageDesign a fault-tolerant system that crawls and versions a large wiki using one coordinator, thousands of unreliable workers, and durable blob storage.
Model answerdistributed-systemscrawlingfault-tolerance