Topic
System Design interview problems
Scalable services, storage, caching and trade-offs. 1133 original problems, each with a worked model answer.
43 easy720 medium370 hard
Showing 871–900 of 1133 results
Design a high-throughput file transfer service that handles multi-gigabyte uploads and downloads with scoped token auth, revocation, chunk integrity, and bounded proxy memory.
Model answerdistributed-systemssecuritystorageapi-designDesign a seat reservation system for high-demand events, covering inventory consistency, surge traffic, payment edge cases, and failure recovery.
Model answersystem-designdistributed-systemsconsistencyqueuingImplement service logic for a freight pricing API, then architect for high traffic when external services are slow.
Model answerAPI designdistributed systemscachingreliabilityDesign an end-to-end pipeline that takes an engineering ticket, uses an LLM agent to propose code changes, and produces a verified pull request safely.
Model answersystem-designai-agentsdeveloper-toolingsecurityDesign a production file storage system with hierarchical namespaces, per-directory capacity limits, atomic duplicate renaming, and petabyte-scale content storage.
Model answerdistributed-systemsstorageconcurrencymetadataDesign a resize-then-watermark pipeline for a batch of photos, then scale it across a bounded pool of worker processes with safe output writes and per-photo failure isolation.
Model answerconcurrencymultiprocessingpipeline-designDesign a resilient database layer that automatically handles node failures while preventing data loss and ensuring only one primary accepts writes.
Model answerdatabasesdistributed-systemsfault-toleranceconsensusDesign a horizontally scalable counter service that guarantees atomic updates, read-after-write consistency, and correct behavior under retries and failures.
Model answerdistributed-systemsconsistencyconcurrencyfault-toleranceDesign the backend architecture for a multi-turn AI chat product with streaming responses, session history, safety controls, and optional tool integrations.
Model answerstreamingLLM inferencedistributed systemsreal-timeDesign the backend that publishes user posts and serves each follower a ranked, paginated feed, handling celebrity accounts, deletions, and privacy at scale.
Model answerfeedfan-outrankingscalabilityAnalyze how traversal order affects performance in large arrays, explain the cache hierarchy and address translation, and identify practical optimizations.
Model answerperformancememorycachinghardwareA production service returns 500 errors for all requests due to local disk exhaustion; walk through triage, mitigation, root cause analysis, and prevention.
Model answerincident-responselinuxdisk-usageobservabilityDecide whether replacing MySQL with MongoDB makes sense for a live service by analyzing workload evidence, correctness needs, and a safe dual-run cutover plan with measurable proof.
Model answerdatabasesmigrationmongodbmysqlDesign a system that keeps records in sync across a central platform and multiple third-party SaaS integrations, handling conflicts, retries, and rate limits reliably.
Model answerdistributed-systemsevent-drivenconflict-resolutionidempotencyDesign a low-latency, distributed rate limiter that enforces per-key request quotas across a fleet of servers handling millions of requests per second.
Model answerrate-limitingdistributed-systemsredisconsistencyAnalyze a design for a batched GPU inference API, identifying flaws in batching, load distribution, caching, and admission control, then calculate capacity needs and schedule heterogeneous models.
Model answergpu-inferencebatchingload-balancingcapacity-planningDesign a system that ingests transactions and balances from banks and credit cards, normalizes and deduplicates them, and powers budgeting and alerting features.
Model answersystem-designfintechdata-ingestionsecurityDesign a peer-to-peer file sharing system where downloaders pull chunks directly from other peers, covering content identity, discovery, integrity verification, NAT traversal, and swarm health.
Model answerpeer-to-peerdistributed-systemsfile-transferNAT-traversalRefactor a single-class chatbot prototype into modular, testable, dependency-injected components following SOLID design principles.
Model answerobject-oriented-designrefactoringSOLIDpythonDesign a low-latency, high-throughput in-memory service that suppresses duplicate events within a configurable 10-minute window at 100k events/sec.
Model answerdeduplicationin-memoryconcurrencysystem-designDesign a policy and workflow to cut benchmark cycle time and HPC resource consumption without compromising result validity.
Model answerHPCbenchmarkingresource managementQADesign a scalable analytics backend that ingests events from production systems, computes real-time and historical metrics, and serves aggregated data to dashboards.
Model answerdata-pipelinemetricsreal-timeanalyticsExplain how an in-memory hash table works under the hood, covering collision strategies, resizing cost, deletion semantics, worst-case behavior, and thread safety.
Model answerhash-tablesdata-structuresconcurrencycomplexityDesign a system that streams real-time asset prices to millions of concurrent users with sub-100ms end-to-end latency.
Model answerstreamingwebsocketsfanoutpub-subDesign an end-to-end pipeline that ingests millions of user interaction events per day, handles duplicates and late arrivals, and serves both real-time dashboards and raw session queries.
Model answerstream-processingdata-pipelineanalyticskafkaDesign a distributed system to ingest and query temperature readings from millions of globally distributed IoT devices with high write throughput.
Model answertime-seriesdata-ingestionIoTdistributed-systemsDesign a buy-now-pay-later checkout backend that decides approval in real time, protects a shared credit line under concurrency, and isolates sensitive shopper data.
Model answersystem-designlatency-budgetconcurrencyencryptionDesign a horizontally scalable, fault-tolerant key-value store that supports high write throughput, low-latency reads, and efficient range scans across multiple data centers.
Model answerdistributed-systemsstorage-enginesreplicationpartitioningExplain how the JVM reclaims memory, how to implement a Singleton safely in Java, and how SOLID principles lead to maintainable, extensible object-oriented designs.
Model answerjavagarbage-collectiondesign-patternssolidBuild a payment platform for a short-duration global fundraiser with real-time totals, idempotency, fraud prevention, and spike handling.
Model answerpaymentsscalabilitydistributed-systemsreal-time