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 661–690 of 1136 results
Design backend infrastructure for a Discord-like platform with servers, channels, DMs, real-time delivery, message persistence, and strict per-channel ordering at scale.
Model answerreal-timewebsocketsmessage-orderingscalabilityDiagnose why a GPU lease manager preempts the wrong tenant, rewrite victim selection to evict the weakest lease, and design regression tests.
Model answerconcurrencyschedulingdebuggingunit-testingArchitect a scalable backend for a turn-based multiplayer game supporting concurrent matches, move reversal requests, and dynamic player rankings.
Model answerreal-time systemsstateful servicesdistributed systemsDesign and code a disk-scale deduplicator that filters candidates cheaply, hashes in streams, verifies bytes, and safely hard-links duplicates.
Model answerdeduplicationhashingstreaming-iohard-linksDesign a check-and-insert service for ~1 million user IDs, covering data structure choice, atomic concurrency, probabilistic filters, and crash-safe on-disk storage.
Model answerbloom-filterlsm-treeconcurrencyhashingDesign an enterprise file storage service covering resumable chunked uploads, metadata/blob separation, versioning, and inherited permissions.
Model answersystem-designobject-storagededuplicationaccess-controlTurn a static card-and-chip screenshot into a tokenized, accessible, responsive component and explain how you'd verify pixel fidelity.
Model answerfrontendaccessibilitydesign-tokensresponsive-layoutWalk through how React reconciles trees, when effects run, how to contain component failures, and what concurrent mode primitives actually buy you.
Model answerreactfrontendhookserror-boundariesDesign an autocomplete service that returns ranked suggestions in under 100ms, handling scale, personalization, and freshness.
Model answerautocompletecachingrankingindexingPrototype a scalable TTS service using a hosted synthesis API, then justify its trade-offs, find its first bottleneck, and plan bulk-document narration support.
Model answertext-to-speechasync-processingapi-designcapacity-planningDesign an RBAC authorization service handling fast permission checks, role inheritance, scoped assignments, and bounded revocation delay.
Model answerrbacauthorizationcachingdistributed-systemsDesign a pricing API that handles batch lookups, personalized context, explicit freshness guarantees, and partial failure at one million item evaluations per second.
Model answerapi-designcachingbatch-processingfault-toleranceDesign a lock-based coordinator that lets exactly two hydrogen threads and one oxygen thread print as one water molecule, with no spinning, no interleaving, and no starvation.
Model answerconcurrencysynchronizationsemaphorescondition-variablesExplain how Python virtual environments work, when to reach for Conda or Poetry over plain venv, and which Linux commands you rely on to run and debug server jobs.
Model answerpythonlinuxdeveloper-toolingenvironment-managementDemonstrate practical DevOps fluency across CI/CD pipelines, GitOps delivery, Kubernetes troubleshooting, containerization, and Linux diagnostics.
Model answerkubernetesci-cddevopslinuxDesign a multi-instance backend service covering routing policies, multi-layer caching strategies, and idempotent API support for non-repeatable operations like payments.
Model answerload-balancingcachingidempotencydistributed-systemsDesign the serving and storage layers for a recommendation service, covering API shape, data flow, storage schemas, caching, and how batch training coexists with live traffic.
Model answerrecommendation-systemsdistributed-systemscachingkafkaDiagnose and fix an API endpoint where row results respect filters but the computed summary still reflects the full unfiltered dataset.
Model answerdebuggingdata-lineageapi-designtestingDesign a distributed limiter that enforces global, regional, and per-endpoint quotas at 500K RPS with sub-10ms overhead and graceful degradation.
Model answerrate-limitingdistributed-systemssystem-designredisDesign a backend service that processes monetary transfers reliably despite retries, crashes, network failures, and ambiguous external responses.
Model answerdistributed-systemsfault-toleranceidempotencytransactionsAudit a multi-file HTTP API to find and fix an incorrect HTTP method, a payload contract mismatch, and missing input validation — then report everything within an hour.
Model answerapi-designcode-reviewinput-validationhttpBuild a system that provisions on-demand containerized development environments with browser-based editing, terminal access, and port forwarding.
Model answercloud-infrastructurecontainersstate-managementDesign a payment platform supporting wallet transfers, card transactions, refunds, and chargebacks with strong consistency, exactly-once semantics, and audit compliance.
Model answerpaymentsdistributed-systemsconsistencyfinancial-systemsDesign a backend that manages live game state, enforces turn-based rules, and delivers move updates in real time across thousands of concurrent sessions.
Model answerwebsocketsconcurrencyreal-timegame-stateBuild a function that reads a CSV of text records, labels each one via an external API with retries, and writes ordered JSON Lines output with per-row failure handling.
Model answerpythonconcurrencydata-pipelineerror-handlingDesign a multi-tenant cloud notebook platform that runs untrusted user code in isolated sandboxes and streams output, with focus on isolation, lifecycle, persistence and observability.
Model answersystem-designsandboxingmulti-tenancystreamingDesign a multi-user document editor with concurrent edits, convergence, offline reconnect, version history, permissions, and live presence.
Model answercollaborative-editingcrdtotsystem-designDesign the backend for a live riddle battle: rooms partitioned by coordinator, server-authoritative timing, crash recovery, and spectator isolation.
Model answersystem-designpartitioningfailure-recoverypub-subDesign a hash-based pipeline to decide if two files hold identical bytes, then scale it to deduplicating content across many machines.
Model answerhashingdeduplicationsystem-designfile-ioDesign a lazily initialized, concurrency-safe connection pool with a wrapper class that returns connections on close, handles exhaustion via timeout, and supports clean shutdown.
Model answerconcurrencyconnection-poolthread-safetypython