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 931–960 of 1133 results
Design comprehensive input validation, error handling, and operational safeguards for a RESTful endpoint that returns the most common elements from a dataset.
Model answerapi-designerror-handlingvalidationrate-limitingDetermine whether variable record lag allows a fixed polling interval to guarantee one new record per poll, then define a production-ready ingestion strategy.
Model answerpollingdata-pipelinesdistributed-systemscursorsContrast processes and threads as concurrency primitives, covering isolation, memory models, IPC vs shared memory, and when to choose each.
Model answerconcurrencyoperating-systemsfundamentalsBuild a fault-tolerant scheduler that triggers recurring tasks on cron-like intervals with pause/resume control and multi-instance coordination.
Model answerdistributed-systemsschedulingfault-toleranceconcurrencyDesign a service that stores configuration data and notifies subscribed clients when values change, covering APIs, consistency, scaling, and failure handling.
Model answerdistributed-systemsreal-timepub-subconsistencyDesign SLIs/SLOs, instrument a service, plan load tests, identify bottlenecks, and propose optimizations with trade-offs for a stateless HTTP API.
Model answerperformanceobservabilityload-testingsli-sloDesign a system that converts long URLs into short codes and redirects visitors at scale, covering code generation, storage choices, caching, and failure handling.
Model answerurl-shortenercachingdistributed-systemsBuild the backend for a live event ticketing platform that prevents overselling during high-traffic on-sales while managing seat reservations and payments.
Model answerdistributed-systemsconcurrencytransactionsscalabilityGiven five identical CPU-bound processes on two cores where four run fairly and one runs never, pinpoint which OS subsystem is responsible and explain what can go wrong there.
Model answeroperating-systemsschedulingconcurrencystarvationDesign a collaborative messaging system supporting thousands of isolated organizations, millions of concurrent users, real-time delivery under 200ms, and global traffic distribution.
Model answerwebsocketsmulti-tenancyfan-outkafkaDesign a thread-safe, memory-bounded write buffer that batches records in memory and drains them to disk via a background thread under high producer concurrency.
Model answerconcurrencybufferingbackpressurebackground-threadsBuild a React feed where upvotes and downvotes re-sort posts by score and designated sticky posts always stay above the ranked list.
Model answerreactstate-managementaccessibilityoptimistic-updatesDesign a scalable distributed storage service that handles immutable binary files produced by continuous integration pipelines.
Model answerdistributed-systemsstoragescalabilityconsistencyCompare thread-based and process-based concurrency in Python, covering the GIL, memory isolation, and which model fits I/O-bound vs CPU-bound workloads.
Model answerconcurrencypythongilmultiprocessingBuild a strongly consistent, double-entry ledger handling concurrent writes, balance queries, and audit trails at scale.
Model answerdistributed-systemsconsistencytransactionsfinancial-systemsDesign the full stack — data model, APIs, exchange-rate pipeline, rounding, and UX — for a travel marketplace that lets guests browse and pay in any of ~50 currencies.
Model answercurrencypaymentsdistributed-systemsdata-modelingDesign a fault-tolerant scheduler that executes dependency graphs across a worker fleet with lease-based dispatch and deployment safety.
Model answerdistributed-systemsschedulingstate-machinesconcurrencyDesign an HTTP API and backend system to process large batches of files asynchronously, handling long-running work, job tracking, and failures.
Model answerapi-designasync-jobsdistributed-systemsfault-toleranceDesign a backend that ingests social media posts at scale, computes time-sensitive popularity scores for hashtags, and serves a constantly updated list of what's trending.
Model answerstream-processingdistributed-systemsrankingreal-timeDesign a distributed crawler that fetches and processes billions of web pages weekly while respecting rate limits and avoiding duplicate work.
Model answerdistributed-systemsscalabilitycrawlingReview a Python parcel-routing codebase for correctness bugs, complexity bottlenecks, and thread-safety failures, then propose concrete fixes for each.
Model answercode-reviewconcurrencydata-structurescomplexityDesign a fault-tolerant distributed system that executes millions of scheduled tasks with configurable timing, retry logic, and multi-tenant isolation.
Model answerdistributed-systemshigh-availabilityscalabilityDesign a scalable, multi-tenant CI/CD system that runs Git-triggered job pipelines with strong isolation, fair scheduling, live log streaming, and per-tenant billing.
Model answersystem-designdistributed-systemsschedulingmulti-tenancyExplain how a distributed message queue assigns partitions to consumers, handles ordering, and recovers from failures through rebalancing.
Model answerdistributed-systemsmessagingscalabilityfault-toleranceDesign backend services for managing async insurance approval workflows, including real-time status tracking, a concurrent pharmacist task queue, and scheduled digest emails.
Model answerevent-drivenasync-workflowsdistributed-systemsDesign a messaging service where one sender dispatches a message to many recipients, each of whom can read it exactly once before it disappears permanently.
Model answermessagingdistributed-systemsfan-outconsistencyDesign a backend notification system for item-due reminders and FIFO waitlist alerts that survives retries, crashes, and mutable state without sending duplicates.
Model answeridempotencynotificationsqueuesconcurrencyDesign a configuration service that merges settings from org, team, workspace, user, and local scopes, syncs across devices, and handles offline edits with conflict resolution.
Model answerdistributed-systemsconflict-resolutionversioningDescribe your approach for evolving an experimental prototype into a production-ready system with appropriate reliability, security, and operational support.
Model answerproduction-readinesssoftware-engineeringoperational-excellenceArchitect a distributed system for uploading photos, following users, and serving personalized image feeds at scale with low latency.
Model answersystem-designdistributed-systemsscalabilitycaching