KatInterview

Topic

System Design interview problems

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

Problems1132

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-management
  • Build a reservation system where users find and book tables across restaurants while preventing double-bookings under concurrent requests.

    Model answerconcurrencydistributed-systemsdatabasescaching
  • Design 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-design
  • Walk through a systematic incident investigation: triage customer impact, correlate observability signals across service tiers, and separate root causes from cascading symptoms.

    Model answerobservabilityincident-responsedistributed-systemsdebugging
  • Design a cross-language JSON format and matching encoder/decoder that correctly handles circular references, shared subobjects, and hostile inputs.

    Model answerserializationgraphscycle-detectionjson
  • Build 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-systems
  • Explore architecture, microarchitecture, and logic techniques to increase chip performance when process technology is fixed.

    Model answercomputer-architecturehardwareperformance-optimization
  • Design a system that persists and triggers jobs at specified times, handling millions of scheduled tasks and thousands of executions per second.

    Model answerdistributed-systemsscalabilityfault-tolerance
  • Design a low-latency rate limiting system that enforces usage quotas across distributed API gateways while maintaining availability and handling failures gracefully.

    Model answerdistributed-systemsrate-limitingscalabilityredis
  • Design a scalable donation system handling 5k writes/sec with payment idempotency, real-time aggregation, and strict financial consistency.

    Model answerpaymentsidempotencyreal-timefinancial-systems
  • Compare 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 answerjavascriptpromisesconcurrencyasync
  • Architect a service that provisions isolated development environments accessible via SSH, with persistent storage, scheduled automation, and fault tolerance.

    Model answerdistributed-systemsinfrastructuresecuritystorage
  • Design 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-systemscaching
  • Design a service that processes both instant payments and deferred-settlement transactions with reserved funds, ensuring correctness under failures.

    Model answerpaymentsdistributed-systemsconsistencystate-machines
  • Design a multi-tenant ML workflow scheduler that handles versioned DAGs, heterogeneous compute routing, data quality enforcement, and reproducible lineage tracking.

    Model answersystem-designmachine-learningdistributed-systemsorchestration
  • Build a scalable backend for uploading images, following users, generating personalized feeds, and suggesting new connections to follow.

    Model answerdistributed-systemssocial-networksfeed-generationrecommendations
  • Design a platform to monitor live telemetry from electric vehicles, covering data collection, ingestion, storage, APIs, and operational controls.

    Model answerreal-time-systemsdata-ingestionAPI-designIoT
  • Debug and resolve a microservices system suffering from elevated latency, errors, and scaling instability using observability data and incident response.

    Model answerkubernetesobservabilityincident-responseperformance
  • Design a low-latency comment system that fans out viewer messages to millions of concurrent watchers during a live video stream.

    Model answerreal-timepub-subwebsocketsfanout
  • Design an architecture to retrieve and store billions of web pages while respecting site policies and handling failures gracefully.

    Model answerdistributed-systemsscalabilityfault-tolerance
  • Design an API that combines data from multiple backend services into one response, handling failures gracefully when services are down or slow.

    Model answermicroservicesfault-toleranceapi-designorchestration
  • Analyze a Java method that charges a payment provider then writes to a database, identifying failure scenarios and proposing fixes for consistency.

    Model answerdistributed-systemsidempotencyerror-handling
  • Design a durable, idempotent command pipeline and telemetry reconciliation engine for five million intermittently connected edge devices.

    Model answerdistributed-systemsedge-computingidempotencytelemetry
  • Model 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-analytics
  • Design a service that exposes a trained ML model over an API, routes requests to GPU workers, and maximizes hardware utilization.

    Model answermachine-learningdistributed-systemsapi-design
  • Design 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-machinesconsistency
  • Design 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-limitingidempotency
  • Build a distributed system for counting events by user, device, and region with real-time aggregation, deduplication, and time-windowed queries.

    Model answerdistributed-systemsstream-processingscalabilitydata-aggregation
  • Identify bottlenecks in a GPU application using profiling tools, then select and validate a parallelization approach to improve end-to-end performance.

    Model answergpuperformanceprofilingparallelization
  • Evaluate when to add an in-memory cache versus tuning database indexes for a high-throughput service experiencing read latency spikes.

    Model answercachingdatabasesperformancearchitecture

More topics