Topic
System Design interview problems
Scalable services, storage, caching and trade-offs. 1130 original problems, each with a worked model answer.
43 easy719 medium368 hard
Showing 1–30 of 1130 results
Design a service where many people edit one document at once, see each other's changes quickly, keep history, show live cursors, and can work offline, all while converging to one state.
Model answersystem-designreal-timeoperational-transformationcrdtDesign a stock service that reports sellable quantity and reserves items for orders without overselling under concurrency, with idempotent retries, expiry, and contention handling.
Model answerconcurrency-controlidempotencyinventorytransactionsArchitect a distributed inventory, reservation, and circulation platform across multiple physical locations with transactional guarantees, idempotency, and search index synchronization.
Model answersystem-designdistributed-systemsconcurrencydatabasesDesign a worldwide short-link service with fast, always-available redirects, unique compact IDs, custom aliases, expiry, and asynchronous click analytics.
Model answersystem-designurl-shortenercachingid-generationEstimate and compare network transfer against shipping physical storage for a 2 TB dataset, state assumptions, and identify when each approach wins.
Model answerback-of-envelopedata-transfernetworkingestimationDescribe what a reusable skill package is in an agent system, how it differs from a plain prompt, and how loading its content in stages keeps context small while limiting risk.
Model answeragentsllm-systemscontext-managementprogressive-disclosureDesign a platform that ingests high-rate telemetry from 100,000 GPU servers, detects hardware faults, runs safe repair workflows, and limits how many machines are taken offline at once.
Model answersystem-designtelemetrykafkaworkflow-engineDesign a sensor layout, lens-obstruction detector and fallback logic for a driver-assist vehicle, then plan how to track down a camera fault that fires about once an hour in clear weather.
Model answerembeddedautomotivesensor-fusionfault-diagnosisDesign a pluggable retry library that supports configurable backoff, jitter strategies, stopping criteria, cancellation timeouts, and dynamic retry headers.
Model answerAPI DesignFault ToleranceConcurrencyDesign PatternsDesign a pipeline that ingests client events such as installs and clicks, powers near-real-time dashboards, and keeps raw data for batch analysis, with explicit correctness trade-offs.
Model answersystem-designstreamingkafkaanalyticsDesign the API and serving layer for product prices that change at most once a day but are read at very high rates, with atomic publishing, caching, rollback and checkout correctness.
Model answercachingcdnversioningread-heavyDesign a cloud pipeline that scores host snapshots as normal or abnormal, applies safe automated containment or alerts, and exposes warning history to tenants.
Model answerml-system-designanomaly-detectionmulti-tenancyevent-drivenDesign a service that turns settled payments into loyalty points using versioned earning rules, an append-only ledger, safe redemptions, and daily reconciliation.
Model answersystem-designledgeridempotencyrules-engineExplain how you would systematically investigate a cloud-hosted web app where most visitors see an endless loading indicator while a minority get the full page.
Model answerdebuggingincident-responsegoogle-cloudfrontendBuild a small retrieval-augmented chat tool with streaming answers, short memory, resilient API calls and tests, then justify the key design trade-offs.
Model answerragllmembeddingsvector-searchDesign a backend for private two-person messaging that stays durable, ordered and deduplicated, with online and offline delivery, presence, and a justified split between Kafka and Redis.
Model answersystem-designwebsocketkafkaredisExplain how Java decides which method runs (overriding versus overloading) and weigh a single deployable application against a set of independent services, including how to migrate.
Model answerjavapolymorphismdynamic-dispatchmicroservicesDesign a horizontally scalable streaming system that extracts text from 100TB of crawled HTML, filters it, removes near-duplicates and reports live metrics, all in one pass.
Model answersystem-designstreamingminhashlshDesign a production ML feature store supporting streaming and batch ingestion, low-latency online serving, point-in-time correctness, and CI/CD feature governance.
Model answermachine-learningsystem-designdata-engineeringdistributed-systemsDesign a robust ML system to handle asynchronous, long-running text-to-video inference, featuring state machine orchestration, GPU worker fault tolerance, and multi-tier scheduling.
Model answersystem-designmachine-learningdistributed-systemsasync-processingDesign an end-to-end telemetry and sensor data collection system for a mapping fleet, handling route planning, physical/wireless offloading, data quality checks, and privacy sanitization.
Model answersystem-designdistributed-systemsetldata-pipelinesDesign a distributed, highly available A/B testing infrastructure capable of sub-millisecond variant evaluation, scale-proof event ingestion, and statistically sound automated analysis.
Model answersystem-designab-testingdata-pipelinesdistributed-systemsDesign an enterprise assistant that retrieves evidence from text, PDFs and images, then generates answers with citations while respecting access controls, latency and cost limits.
Model answerragmultimodalretrievalembeddingsPort a class component's fetch-and-timer lifecycle to useEffect, diagnose a stale-closure bug in a counter, and compare HOCs and render props with custom hooks.
Model answerreacthooksuseEffectclosuresDesign a scalable prompt-sharing platform supporting public, private, and secret-link access with instant token revocation and high-throughput read caching.
Model answersystem-designcachingauthorizationdata-modelingArchitect a local operating system notification system for desktop apps and use an AI assistant to refine specific low-level logic safely.
Model answersystem designoperating systemsdesktop appsai workflowsDesign a backend that turns events from many product services into push and in-app alerts, with preferences, batching, rate limits, priority lanes, and safe retries.
Model answersystem-designnotificationsmessage-queuerate-limitingDesign a backend for sharing sensitive PDFs across organizations with fast permission revocation, per-viewer watermarks, and a tamper-evident record of every access.
Model answersystem-designaccess-controlmulti-tenancyaudit-loggingDesign a storefront backend where users sign up, log in, browse products, manage a personal cart and place orders safely, while APIs block access to other users' data.
Model answerauthenticationauthorizationidempotencysession-managementDesign a backend flow for charging customers through an external payment provider so no one is billed twice and no payment is lost, then pick what to persist and which database to use.
Model answeridempotencypaymentsretriesdatabase-design