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 991–1020 of 1132 results
Build a workflow engine that executes order tasks as a directed acyclic graph, finalizes successful orders, and triggers refunds when timeouts occur.
Model answerdistributed-systemsworkflow-orchestrationstate-managementBuild a reservation system where users find and book tables across restaurants while preventing double-bookings under concurrent requests.
Model answerconcurrencydistributed-systemsdatabasescachingDesign an event-driven system that ingests alert events, fans out to subscribers, and delivers through push, email, SMS, and in-app channels with reliability and preferences.
Model answerdistributed-systemsmessage-queuesreliabilityapi-designWalk through a systematic incident investigation: triage customer impact, correlate observability signals across service tiers, and separate root causes from cascading symptoms.
Model answerobservabilityincident-responsedistributed-systemsdebuggingDesign a cross-language JSON format and matching encoder/decoder that correctly handles circular references, shared subobjects, and hostile inputs.
Model answerserializationgraphscycle-detectionjsonBuild a system that ingests notification requests with sub-50ms latency, handles 10x traffic spikes, and delivers across multiple channels without overwhelming providers.
Model answerqueuesscalabilityrate-limitingdistributed-systemsExplore architecture, microarchitecture, and logic techniques to increase chip performance when process technology is fixed.
Model answercomputer-architecturehardwareperformance-optimizationDesign a system that persists and triggers jobs at specified times, handling millions of scheduled tasks and thousands of executions per second.
Model answerdistributed-systemsscalabilityfault-toleranceDesign a low-latency rate limiting system that enforces usage quotas across distributed API gateways while maintaining availability and handling failures gracefully.
Model answerdistributed-systemsrate-limitingscalabilityredisDesign a scalable donation system handling 5k writes/sec with payment idempotency, real-time aggregation, and strict financial consistency.
Model answerpaymentsidempotencyreal-timefinancial-systemsCompare how Promise.all, Promise.any, and Promise.allSettled settle, handle failures, and order results, then pick the right one for three real service-orchestration scenarios.
Model answerjavascriptpromisesconcurrencyasyncArchitect a service that provisions isolated development environments accessible via SSH, with persistent storage, scheduled automation, and fault tolerance.
Model answerdistributed-systemsinfrastructuresecuritystorageDesign a system that ensures each piece of content appears only once in the initial screen of a personalized homepage with multiple thematic rows.
Model answerdeduplicationpersonalizationrecommendation-systemscachingDesign a service that processes both instant payments and deferred-settlement transactions with reserved funds, ensuring correctness under failures.
Model answerpaymentsdistributed-systemsconsistencystate-machinesDesign a multi-tenant ML workflow scheduler that handles versioned DAGs, heterogeneous compute routing, data quality enforcement, and reproducible lineage tracking.
Model answersystem-designmachine-learningdistributed-systemsorchestrationBuild a scalable backend for uploading images, following users, generating personalized feeds, and suggesting new connections to follow.
Model answerdistributed-systemssocial-networksfeed-generationrecommendationsDesign a platform to monitor live telemetry from electric vehicles, covering data collection, ingestion, storage, APIs, and operational controls.
Model answerreal-time-systemsdata-ingestionAPI-designIoTDebug and resolve a microservices system suffering from elevated latency, errors, and scaling instability using observability data and incident response.
Model answerkubernetesobservabilityincident-responseperformanceDesign a low-latency comment system that fans out viewer messages to millions of concurrent watchers during a live video stream.
Model answerreal-timepub-subwebsocketsfanoutDesign an architecture to retrieve and store billions of web pages while respecting site policies and handling failures gracefully.
Model answerdistributed-systemsscalabilityfault-toleranceDesign an API that combines data from multiple backend services into one response, handling failures gracefully when services are down or slow.
Model answermicroservicesfault-toleranceapi-designorchestrationAnalyze a Java method that charges a payment provider then writes to a database, identifying failure scenarios and proposing fixes for consistency.
Model answerdistributed-systemsidempotencyerror-handlingDesign a durable, idempotent command pipeline and telemetry reconciliation engine for five million intermittently connected edge devices.
Model answerdistributed-systemsedge-computingidempotencytelemetryModel the incremental profit of raising credit limits for a customer segment, then design an experiment to validate the decision before a full rollout.
Model answerunit-economicscredit-riskexperiment-designproduct-analyticsDesign a service that exposes a trained ML model over an API, routes requests to GPU workers, and maximizes hardware utilization.
Model answermachine-learningdistributed-systemsapi-designDesign a backend system to manage the complete lifecycle of payment disputes in an e-commerce marketplace, including evidence handling, deadline management, and financial settlements.
Model answerdistributed-systemsfinancial-systemsstate-machinesconsistencyDesign a system that automatically captures video conference recordings from a third-party platform, transforms them into transcripts and analytics, and serves results reliably at scale.
Model answerdistributed-systemsdata-pipelinerate-limitingidempotencyBuild a distributed system for counting events by user, device, and region with real-time aggregation, deduplication, and time-windowed queries.
Model answerdistributed-systemsstream-processingscalabilitydata-aggregationIdentify bottlenecks in a GPU application using profiling tools, then select and validate a parallelization approach to improve end-to-end performance.
Model answergpuperformanceprofilingparallelizationEvaluate when to add an in-memory cache versus tuning database indexes for a high-throughput service experiencing read latency spikes.
Model answercachingdatabasesperformancearchitecture