KatInterview

Topic

System Design interview problems

Scalable services, storage, caching and trade-offs. 1133 original problems, each with a worked model answer.

Problems1133

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-limiting
  • Determine 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-systemscursors
  • Contrast processes and threads as concurrency primitives, covering isolation, memory models, IPC vs shared memory, and when to choose each.

    Model answerconcurrencyoperating-systemsfundamentals
  • Build a fault-tolerant scheduler that triggers recurring tasks on cron-like intervals with pause/resume control and multi-instance coordination.

    Model answerdistributed-systemsschedulingfault-toleranceconcurrency
  • Design a service that stores configuration data and notifies subscribed clients when values change, covering APIs, consistency, scaling, and failure handling.

    Model answerdistributed-systemsreal-timepub-subconsistency
  • Design SLIs/SLOs, instrument a service, plan load tests, identify bottlenecks, and propose optimizations with trade-offs for a stateless HTTP API.

    Model answerperformanceobservabilityload-testingsli-slo
  • Design 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-systems
  • Build the backend for a live event ticketing platform that prevents overselling during high-traffic on-sales while managing seat reservations and payments.

    Model answerdistributed-systemsconcurrencytransactionsscalability
  • Given 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-systemsschedulingconcurrencystarvation
  • Design 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-outkafka
  • Design 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-threads
  • Build 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-updates
  • Design a scalable distributed storage service that handles immutable binary files produced by continuous integration pipelines.

    Model answerdistributed-systemsstoragescalabilityconsistency
  • Compare 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 answerconcurrencypythongilmultiprocessing
  • Build a strongly consistent, double-entry ledger handling concurrent writes, balance queries, and audit trails at scale.

    Model answerdistributed-systemsconsistencytransactionsfinancial-systems
  • Design 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-modeling
  • Design a fault-tolerant scheduler that executes dependency graphs across a worker fleet with lease-based dispatch and deployment safety.

    Model answerdistributed-systemsschedulingstate-machinesconcurrency
  • Design 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-tolerance
  • Design 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-time
  • Design a distributed crawler that fetches and processes billions of web pages weekly while respecting rate limits and avoiding duplicate work.

    Model answerdistributed-systemsscalabilitycrawling
  • Review a Python parcel-routing codebase for correctness bugs, complexity bottlenecks, and thread-safety failures, then propose concrete fixes for each.

    Model answercode-reviewconcurrencydata-structurescomplexity
  • Design a fault-tolerant distributed system that executes millions of scheduled tasks with configurable timing, retry logic, and multi-tenant isolation.

    Model answerdistributed-systemshigh-availabilityscalability
  • Design 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-tenancy
  • Explain how a distributed message queue assigns partitions to consumers, handles ordering, and recovers from failures through rebalancing.

    Model answerdistributed-systemsmessagingscalabilityfault-tolerance
  • Design 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-systems
  • Design 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-outconsistency
  • Design a backend notification system for item-due reminders and FIFO waitlist alerts that survives retries, crashes, and mutable state without sending duplicates.

    Model answeridempotencynotificationsqueuesconcurrency
  • Design 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-resolutionversioning
  • Describe your approach for evolving an experimental prototype into a production-ready system with appropriate reliability, security, and operational support.

    Model answerproduction-readinesssoftware-engineeringoperational-excellence
  • Architect a distributed system for uploading photos, following users, and serving personalized image feeds at scale with low latency.

    Model answersystem-designdistributed-systemsscalabilitycaching

More topics