KatInterview

Topic

System Design interview problems

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

Problems1137

43 easy724 medium370 hard

Showing 631–660 of 1137 results

  • Design a distributed service that tracks the most-viewed content items over a rolling one-hour window at 100K events/sec, serving ranked results with low latency.

    Model answerstream-processingdistributed-systemsapproximation-algorithms
  • Assess user experience, identify weak product areas through metrics, and debug suspected issues in a livestream shopping application.

    Model answerproduct-analyticsdebuggingmetricsfunnel-analysis
  • Fix defects in an existing Django REST API so that a suite of automated tests covering search, filtering, ordering, and error handling all pass.

    Model answerdjangodebuggingrest-apiquerysets
  • Design a billing platform that authorizes funds, captures final amounts in batches, reconciles against processor settlements, and guarantees no customer is ever charged twice.

    Model answerpaymentsidempotencyreconciliationstate-machine
  • Design a quota enforcement service that handles millions of checks per second across many tenants, covering APIs, consistency trade-offs, hot-key handling, and billing accuracy.

    Model answerrate-limitingdistributed-systemsconsistencysharding
  • Design the algorithm and surrounding system that ensures every show tile visible on a streaming home page appears at most once, across all rows and columns.

    Model answerdeduplicationpage-assemblygreedysystem-design
  • Design an enterprise RAG system over millions of private documents: hybrid retrieval, reranking, cited generation, strict tenant/ACL isolation, and a 60-second freshness budget.

    Model answerragretrievalsystem-designaccess-control
  • Design an instruction scheduler for a 4-issue VLIW core with mixed-latency functional units, covering hazard detection, register pressure, loop pipelining, and latency sensitivity.

    Model answercompiler-backendinstruction-schedulingvliwpipeline-hazards
  • Design a fault-tolerant intermediary service that processes charge requests from sellers, coordinates with an external payment provider, and maintains a consistent transaction ledger.

    Model answerdistributed-systemsidempotencyfault-tolerancefinancial-systems
  • Build a backend that records employee time punches, computes hours worked per pay cycle, calculates wages, and handles burst traffic and external data feeds.

    Model answerbackendscalabilitydata-modelingapi-design
  • Design a real-time ride-hailing backend that ingests driver pings, matches riders without double-booking, and runs an idempotent, fault-tolerant trip state machine.

    Model answersystem-designgeospatialdistributed-systemsstate-machine
  • Design a distributed system that ingests millions of tagged metric data points per second, enforces cardinality safety, tiers storage by age, and serves dashboard queries under 500 ms.

    Model answermetricstime-seriesdistributed-systemsobservability
  • Move rows from a relational database into a NoSQL key-value store with a consistent one-time snapshot followed by ongoing CDC replication from the write-ahead log.

    Model answerchange-data-capturedata-migrationdistributed-systemsidempotency
  • Design four backend systems: a deduplicated event counter, an immutable driver-pay ledger, a fault-tolerant offboarding workflow, and a permission-gated LLM expense assistant.

    Model answerevent-drivenworkflow-orchestrationLLMledger
  • Design a booking service for rental vehicles: availability search, temporary holds, confirmation, cancellation, concurrency control, and double-booking prevention.

    Model answerconcurrencyinventory-managementdistributed-systems
  • Design a real-time multilingual voice role-play practice feature: content model, session state machine, low-latency audio pipeline, offline mode, personalization, scaling and privacy.

    Model answersystem-designspeechlow-latencymultilingual
  • Design a system that accepts a target URL, a future timestamp, and a JSON payload, then reliably delivers that payload via HTTP at the scheduled time.

    Model answersystem-designschedulingqueuesreliability
  • Design a high-throughput system that ingests courier ratings and serves a low-latency top-K leaderboard under eventual consistency.

    Model answerleaderboardrediskafkaaggregation
  • Design a system that ingests untrusted mobile app reviews at scale and produces safe, LLM-generated theme digests for internal product teams.

    Model answerllmprompt-injectionpiipipeline
  • Design a distributed scheduling service that fires one-time and recurring jobs on time, at scale, without losing a single task across node failures or clock drift.

    Model answerdistributed-systemsschedulingfault-tolerancequeues
  • Design a thread-safe key-value store that tracks how many operations occurred in any recent time window, without storing one entry per request.

    Model answerconcurrencymetricsring-bufferkey-value-store
  • Design a fault-tolerant engine that runs multi-step service workflows with ordering, retries, compensation, and exactly-once side effects.

    Model answerworkflow-orchestrationdistributed-systemsidempotencysaga-pattern
  • Design a home-repair hiring product embedded in a major social platform, covering user segmentation, trust mechanics, marketplace dynamics, and success metrics.

    Model answerproduct designmarketplacetrust and safetymetrics
  • Build a scalable backend to track health status for millions of IoT devices sending periodic check-ins and quickly identify unresponsive units.

    Model answerdistributed-systemsreal-timeiotscalability
  • Build a non-blocking API and worker system to crawl millions of files across cloud storage accounts with progress tracking and fault tolerance.

    Model answerasync-jobsdistributed-systemsscalability
  • Build a distributed system to run scheduled and recurring tasks at scale with latency SLAs and full execution traceability.

    Model answerdistributed-systemsschedulingreliabilityobservability
  • Design a transaction ledger handling 50k TPS with ACID guarantees, choosing between monolith and microservices and between sharding and replication.

    Model answerdistributed-systemsdatabase-scalingconsistencymicroservices
  • Design a near-real-time, sharded full-text search layer over large structured tables with sub-200ms reads and petabyte scale.

    Model answersearchshardingcdcconsistency
  • Design two systems: a multi-publisher article feed with ranking and client-adaptive APIs, and a temporary email service that generates human-looking addresses with guaranteed uniqueness at scale.

    Model answerapi-designcachingdistributed-systemsemail
  • Evaluate trade-offs between real-time communication approaches and demonstrate understanding of network protocol layers and modern transport mechanisms.

    Model answernetworkingprotocolsreal-timearchitecture

More topics