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 31–60 of 1130 results
Explain how to tell whether a job is limited by computation or by waiting, and how the GIL affects choosing threads, asyncio, or multiprocessing for crawling, parsing, and heavy number work.
Model answerpythonconcurrencygilasyncioDesign a fault-tolerant scheduler that places multi-node, all-or-nothing GPU jobs for a video generation platform, with topology-aware placement, tenant fairness and checkpoint-based preemption.
Model answergpu-schedulinggang-schedulingpreemptionfair-sharingDesign a fault-tolerant stream pipeline that keeps an exact, event-time ranking of the 100 users with the most events in the last 60 minutes, tolerating late data and skew.
Model answerstream-processingtop-ksliding-windowkafkaDesign a scalable, reliable service that accepts images, runs object-detection models on GPUs, and returns labeled bounding boxes through sync and bulk APIs, with ML lifecycle and operations covered.
Model answerml-system-designobject-detectionmodel-servinggpu-inferenceDesign an inference backend that aggregates single-sentence translation requests into GPU batches running on a fixed 80 ms execution loop.
Model answersystem-designml-infrastructurebatchinglatencyDesign a multi-tenant service that turns uploaded documents, images and videos into searchable vectors, covering ingestion, inference, storage, dedup, re-embedding, and operations.
Model answerml-system-designembeddingsvector-searchgpu-batchingDescribe how to take a fresh machine to a pinned, secure, fast-feedback Python workspace and prove it works by scaffolding a small tested CLI and HTTP service.
Model answerpythontoolingvirtualenvreproducibilityDesign a multi-tenant team chat product covering channels, DMs, real-time delivery, history sync, search, and notifications, with per-channel ordering and tenant isolation.
Model answersystem-designreal-timewebsocketsshardingDesign a low-latency type-ahead service that returns ranked, personalized, typo-tolerant, multilingual query suggestions while filtering abusive content and protecting user privacy.
Model answersystem-designautocompletetrierankingDesign a pipeline that records keyboard, mouse and IME events from several devices, orders them globally, persists a log, and rebuilds the exact typed text on replay.
Model answersystem-designevent-sourcingimewrite-ahead-logDiscuss your delivery-automation experience, design a Jenkins build-and-test pipeline with plugins, and explain how to search a log too big to open without loading it into memory.
Model answerjenkinsci-cddevopslog-analysisDesign a CI pipeline that compiles a code change and executes roughly one million tests, returning results in ten minutes, while justifying sharding, caching, flakiness and cost decisions.
Model answercontinuous-integrationshardingschedulingcachingBuild a generic React typeahead that debounces input, discards out-of-order responses, follows the ARIA combobox pattern, and supports full keyboard control.
Model answerreactaccessibilityariadebounceDesign a sharded, near-real-time inverted index that answers AND/OR/NOT keyword queries over a stream of 10K new short posts per second within 200 ms.
Model answerinverted-indexsearchshardingkafkaDesign a backend for a streaming audio app covering searchable catalog, concurrently edited playlists, and ordered cross-device playback control at 50M MAU scale.
Model answersystem-designsearch-indexconcurrency-controlwebsocketArchitect a hosted service that accepts SQL from a UI or API, plans and runs it against Iceberg tables on shared compute, and returns results while isolating tenants and handling writes.
Model answersystem-designapache-icebergdistributed-querymulti-tenancyDesign a backend for a fleet of EV fast-charging stalls covering energy-based billing, long-term health telemetry, and a nearby-available-charger search with prices.
Model answersystem-designiotbillingtelemetrySpeed up the hottest reads of a live service backed by a normalized database, and explain the write-path cost, freshness impact and rollout plan of each change.
Model answerdatabase-designdenormalizationcachingread-latencyDesign a concurrent embedded key-value store whose indexes are built only from hash maps, covering sharding, crash recovery, log compaction, expiry, and a testing plan.
Model answerkey-value-storeconcurrencyhash-mapdurabilityDesign an oversell-proof book stock service with search, plus a real-time one-to-one support chat with delivery receipts, history and offline handling.
Model answersystem-designconsistencywebsocketssql-vs-nosqlDesign a browser-based rich-text editor where many people edit one document simultaneously, stay in sync, keep durable history, and survive disconnects and server failures.
Model answersystem-designreal-timecollaborationcrdtDesign a global, multi-modal system that screens uploaded videos for policy violations with ML, escalates uncertain cases to human reviewers, and keeps a tamper-proof decision history.
Model answerml-system-designcontent-moderationmultimodalhuman-in-the-loopArchitect an idempotent system to merge platform customer identities while maintaining account ledgers, resolving entity conflicts, and preserving query accuracy.
Model answersystem-designdistributed-systemsdatabase-designledgerDesign a payout service that never moves money twice despite client retries, parallel workers, and gateway timeouts during peak payroll bursts.
Model answeridempotencypaymentsdistributed-systemsstate-machineDesign the contract for subtracting two timestamped numeric streams, including missing and duplicate timestamps, and a versioned, idempotent way to publish corrections for late events.
Model answerstreamingidempotencyevent-timedata-contractsBuild a measurement-first diagnosis and fix plan for three latency problems in a C++ trading service: CPU saturation, cache-hostile memory use, and slow synchronous log writes.
Model answerperformanceprofilinglow-latencylinuxDesign an end-to-end system that mines reusable agent playbooks from a company's traces and documents, tests them offline, ships them safely to agents, and keeps them current.
Model answerllm-systemsagentsml-system-designevaluationDerive FLOPs, bytes moved, and collective traffic for a plain two-matmul MLP under several partitioning schemes, then decide which hardware limit binds.
Model answerml-systemstensor-parallelismrooflinecollectivesDesign a fleet-wide system that rejects connections from IP addresses a regulator flags as prohibited, using only the regulator's per-address lookup API as the source of truth.
Model answersystem-designnetworkingcachingtrieDesign a service that polls tens of thousands of external publishers, stores articles without duplicates, and serves topic timelines with stable pagination under 50ms p99.
Model answersystem-designschedulingdeduplicationcaching