Topic
System Design interview problems
Scalable services, storage, caching and trade-offs. 1132 original problems, each with a worked model answer.
43 easy720 medium369 hard
Showing 961–990 of 1132 results
Architect a scalable platform for browsing, purchasing, and tracking book orders with high-availability search and transactional inventory correctness.
Model answere-commerceinventory-managementdistributed-transactionssearch-infrastructureArchitect a multi-turn chatbot that retrieves answers from internal docs using RAG, enforces per-user access controls, and handles traffic spikes under a 2-second latency budget.
Model answerragvector-searchaccess-controlconversational-aiExplain the failure modes at clock domain crossings and select the right synchronization technique for single-bit signals, events, and multi-bit data transfers.
Model answerdigital-designclock-domain-crossingmetastabilityhardwareDesign a globally distributed system that delivers billions of push, email, and SMS notifications daily with low latency, at-least-once guarantees, and no duplicates on retry.
Model answerdistributed-systemsmessagingqueuesidempotencyBuild a distributed system that maps long URLs to short alphanumeric codes and serves fast redirects at scale.
Model answerdistributed-systemsscalabilitycachingdatabasesBuild a transactional ledger supporting currency transfers, 24-hour flow queries, and 30-day hourly balance history at scale.
Model answerledgertransactionsaggregationdistributed-systemsTrack down and fix three bugs in a Python template library: a silent AST visitor gap, a directory/file confusion in template lookup, and comment-only blocks that generate invalid Python.
Model answerdebuggingastpythontemplate-engineDesign a real-time platform where players matched by language race to type the same passage, see live progress and errors, serve error-freeze penalties, and can be watched by spectators.
Model answerreal-timewebsocketsmatchmakingfan-outArchitect a fault-tolerant distributed system that executes millions of recurring jobs with precise timing, at-least-once guarantees, and resilience to failures.
Model answerdistributed-systemsschedulingfault-tolerancescalabilityBuild a system that routes skill-tagged work items to qualified engineers in under 500ms while maintaining fair load distribution across 200k workers.
Model answerdistributed-systemsmatching-algorithmsscalabilityDiagnose and mitigate a performance or availability drop that appears 10–15 minutes after shipping a new version to production.
Model answerincident-responseobservabilityproduction-systemsDesign, implement, and verify a two-endpoint workflow service—create and execute—in 45 minutes while demonstrating a disciplined plan-then-code loop with an AI assistant.
Model answerworkflow-engineai-assisted-codinggraph-executiondependency-orderingDesign a system to coordinate safe, rolling maintenance operations across thousands of machines while preserving availability and handling failures.
Model answerdistributed-systemsorchestrationstate-managementfault-toleranceDesign a scalable service that returns ranked autocomplete suggestions as users type search queries, handling billions of requests per day with sub-100ms latency.
Model answerautocompletelow-latencycachingrankingDesign a ConfigRegistry class that serves configuration to thousands of concurrent threads with lazy loading, stale fallback on failure, and no thundering herd.
Model answerconcurrencyreliabilitypythondistributed-systemsA dict-backed memoization wrapper is called from many threads simultaneously — identify the race conditions and redesign it to be safe without killing throughput.
Model answerconcurrencythreadingpythoncachingDesign a production HTTP API that assigns ads to page slots while enforcing per-user display limits correctly under concurrency and retries.
Model answerapi-designconcurrencyidempotencydistributed-systemsWalk through pinning a Python interpreter, isolating dependencies with a lockfile, securing API credentials, and verifying the setup with a live smoke test.
Model answerpythondev-environmentllmdependency-managementDesign a low-latency distributed rate limiter that enforces different token budgets for different users across a fleet of stateless API gateway nodes.
Model answerrate-limitingdistributed-systemscachingredisDiagnose every failure mode in a naive charge-then-write endpoint, then redesign it to survive crashes, timeouts, retries, and concurrent duplicates.
Model answeridempotencydistributed-systemspaymentsfault-toleranceDesign an inference service that groups incoming LLM requests into batches, assuming 100ms processing per batch, with attention to queueing, routing, and failure modes.
Model answerbatchinginferencelatencythroughputDesign a multi-region rate limiting system that handles millions of requests per second with low latency while managing hot keys and partition failures.
Model answerdistributed-systemsrate-limitingcachingscalabilityBuild a web app for writing, executing, and versioning LLM prompts with efficient storage for large documents and incremental edits.
Model answerdatabase-schemaversioningobject-storagecollaborationBuild a system to aggregate and store operational telemetry from a large distributed fleet, supporting real-time writes and historical analytics.
Model answertime-seriesdistributed-systemsstreamingstorageBuild a stream processor that detects traffic imbalances across experiment variants in real time, handling duplicate events and delayed data.
Model answerstreamingexperimentationstatisticsstate-managementDesign a distributed service that ingests and keeps data fresh from a third-party API capped at exactly 3 requests per second.
Model answerrate-limitingdistributed-systemsdata-pipelinebackoffArchitect a system that collects content from diverse publishers, identifies user interests, and assembles personalized feeds with timely updates.
Model answerfeed-systemspersonalizationdata-ingestioncachingBuild a scalable service that temporarily locks inventory when users add items to their cart, prevents duplicate allocation, and releases stock automatically.
Model answerconcurrencydistributed-systemscachingdatabase-designContrast storage duration and allocation, explain TLS-based security in HTTPS, and compare reliable streams with unreliable datagrams.
Model answerfundamentalsnetworkingmemory-managementDesign a rate limiting service that enforces API key quotas consistently across multiple geographic regions with low latency and partition tolerance.
Model answerdistributed-systemsrate-limitingscalability