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 181–210 of 1132 results
Design a scheduler that boots interdependent services on one multi-core machine as fast as possible, handling failures, resource limits, observability, and extension to a cluster.
Model answerschedulingdagtopological-sortconcurrencyDesign a distributed key-value database serving 1M ops/sec over 50M records with low tail latency, five-nines availability, tunable consistency and durable acknowledged writes.
Model answerdistributed-systemskey-value-storereplicationconsistent-hashingDesign a memory- and compute-efficient serving stack for a multimodal video captioning model, then a fast search-and-watermark pipeline for advertisers over existing captions and embeddings.
Model answerml-system-designmultimodalmodel-servingquantizationDesign an in-memory hierarchical file metadata service with create, recursive delete, fast top-k largest files per directory, and nested quota enforcement, plus a multi-node scaling plan.
Model answersystem-designtreesorted-indexquotaDesign the storage backend for a photo-sharing service, covering upload consistency, instant visibility, duplicate prevention, and how to justify and scale the metadata database.
Model answersystem-designobject-storageconsistencydeduplicationDesign a way for a fleet of identical workers to pick exactly one active instance using Redis expiring keys, covering failover, fencing, pauses, clock assumptions and Redis outages.
Model answerleader-electionredisdistributed-systemsfencing-tokenCompare TCP and UDP across reliability, ordering, congestion control, setup and overhead, then explain how TCP detects loss through timers, duplicate ACKs and SACK.
Model answernetworkingtcpudpcongestion-controlDesign a worldwide edge service that scores client IPs per request, shares abuse signals between regions within seconds, and can undo bad blocklist changes in under ten seconds.
Model answersystem-designdistributed-systemsedge-computingreplicationDesign a thread-parallel breadth-first search that finds the fewest moves to open a multi-wheel combination lock, covering work splitting, safe visited tracking, level ordering and trade-offs.
Model answerbfsconcurrencyparallel-algorithmsgraph-searchEvaluate key Spring concepts including ApplicationContext configuration, AOP advice selection, dependency injection, JdbcTemplate mapping, DataSource configuration, and Security authorization rules.
Model answerjavaspringspring-bootspring-securityDesign the backend of a book-selling website that survives flash sales, with fast search, no overselling of stock, and safe recovery when payment and inventory steps fail partway.
Model answersystem-designe-commerceinventorysagaDesign a plan to relocate 200 TB of images and video from a bandwidth-limited data center to a cloud GPU cluster, then feed training fast, reproducibly, and with verified integrity.
Model answerdata-pipelinedata-migrationdistributed-trainingstorageDesign a scalable, fault-tolerant service that pairs two players of similar rating, loosens its criteria as waiting grows, supports cancellation, and discourages opponent dodging.
Model answermatchmakingdistributed-systemsredispartitioningDesign the backend for a scheduling app where one user's devices stay in sync, edits work offline, and repeating events are stored and queried efficiently at 10M daily users.
Model answersystem-designsyncconflict-resolutionrecurrenceDesign a shared analytics service where enterprise customers run SQL on their own datasets with strict isolation, attribute-based access rules, tamper-evident auditing and erasure support.
Model answermulti-tenancyabacaudit-loggingdata-lineageDesign a robust payment architecture that handles real-time authorization holds, deferred batch captures, and safe retries without double-charging users.
Model answersystem-designpayment-processingidempotencyeventual-consistencyDesign a backend for elimination-style live quiz games with many players per room, fair timing, crash recovery mid-round, and spectator traffic kept away from gameplay.
Model answersystem-designreal-timewebsocketsshardingDesign a scalable, low-latency matchmaking architecture capable of handling millions of players across diverse modes while keeping matches balanced, fast, and crash-resilient.
Model answersystem-designdistributed-systemsgaminglow-latencyAnswer four backend fundamentals for a payments service: Python concurrency and the GIL, PUT/PATCH with optimistic locking, CPython garbage collection, and deadlock avoidance.
Model answerpythongilhttpoptimistic-concurrencyDesign a service that hands out isolated, GPU-backed Jupyter-style workspaces that can be started, paused, and resumed on any host without losing files or packages, while controlling idle GPU spend.
Model answersystem-designgpu-schedulingpersistent-storagelifecycle-managementDesign an asynchronous backend that accepts LLM requests, queues and routes them fairly, runs them reliably, and returns results, with cost, security and SLA controls.
Model answersystem-designllm-servingjob-queueidempotencyDesign a platform where many people edit one document simultaneously, covering merge rules, live streaming, durable history, reconnect, and periodic Git checkpoints.
Model answersystem-designcollaborationcrdtoperational-transformDesign a distributed platform that runs delayed and immediate background tasks with retries and durable state, plus a cache that serves task status in under 10 ms at 10k requests/second.
Model answersystem-designjob-queuecachingidempotencyWalk through how to confirm whether disk I/O is slowing a service, find which process drives it, characterize the workload, and propose measured fixes.
Model answerlinuxperformanceiostatstorageDesign an MVP retrieval-augmented assistant that answers employee questions across a ticketing system and a wiki, with citations, per-user access control, and fresh data.
Model answerragretrievalaccess-controlhybrid-searchDesign an end-to-end reliability plan for an event-ingestion service: guarded dependency calls, SLO-based alerting, reversible schema changes, and a canary pipeline with automatic rollback.
Model answercircuit-breakerslocanary-deploymentschema-migrationDesign a service that maps long web addresses to compact codes and serves redirects at very high read volume, covering API, storage, code generation and caching.
Model answersystem-designurl-shortenercachingkey-generationDesign a multi-tenant Identity and Access Management system with SPIFFE-style workload attestation, dynamic RBAC/ABAC policy evaluation, local enforcement, and tamper-evident auditing.
Model answersystem-designsecurityiamdistributed-systemsArchitect secure, direct S3 uploads via pre-signed URLs/IAM and analyze TypeScript structural typing alongside React useEffect async cleanup.
Model answerAWSS3IAMTypeScriptWalk through an end-to-end incident response plan for high cache misses and service latency, covering triage, observability, hypothesis testing, mitigations, and post-incident RCA.
Model answercachingincident-responsedistributed-systemsobservability