KatInterview

Topic

System Design interview problems

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

Problems1139

44 easy725 medium370 hard

Showing 601–630 of 1139 results

  • Design an HTTP gateway through which third-party partners submit property listings, which are checked by an internal validation team's service, with safe retries, async results and observability.

    Model answerrest-apiidempotencyasync-processingoutbox-pattern
  • Fix lost security context in async tasks, duplicate ledger writes after Kafka redelivery, and unsafe shared metrics maps in a Java 17 / Spring Boot payment consumer.

    Model answerjavaspring-securitykafkaidempotency
  • Walk through how a GPU turns triangles into pixels, how pipelines resolve register read-after-write hazards, and which workloads GPUs handle well or badly.

    Model answergpu-architecturegraphics-pipelinepipeline-hazardslatency-hiding
  • Design a browser-based 3D replay viewer that streams time-indexed vehicle logs from object storage, with prefetching, fast seeking, and aligned playback.

    Model answerstreamingcachingtime-seriesprefetching
  • Architect a platform that renders risky web pages in throwaway cloud sandboxes and streams the result to employees, covering isolation, streaming, state, policy and scale for 50k sessions.

    Model answersystem-designremote-browser-isolationwebrtcsandboxing
  • Diagnose a Requests POST with a file-like body that stalls after a 307 redirect, fix the body-rewind logic, and write a deterministic regression test.

    Model answerpythonhttpdebuggingredirects
  • Design a client-side package manager that resolves versioned dependencies, rejects cycles and conflicts, and applies installs transactionally with recovery after failure.

    Model answersystem-designdependency-resolutiongraphstransactions
  • Design a platform where teams write, tag, version, search and rank interview questions, and where interviewers pick from a shortlist during a live session without leaking or repeating questions.

    Model answersystem-designsearchrankingversioning
  • Design a DAG-based intermediate representation for GPU test pipelines and explain how to compile it into a cached, incremental, deterministic plan that survives schema changes.

    Model answerdagintermediate-representationcachingincremental-builds
  • Design a centralized Spring exception handling layer that returns one JSON error contract, maps domain errors to HTTP codes, hides internals, and ties each response to server logs via a trace ID.

    Model answerjavaspringexception-handlingrest-api
  • Sketch a high-level payment backend that charges customers via a third-party provider, guaranteeing no double charges and no orders marked paid without collected funds.

    Model answerpaymentsidempotencystate-machineledger
  • Design a server that orders and merges simultaneous keystrokes from many editors on one document, converges all replicas, and survives failures.

    Model answercollaborative-editingoperational-transformationreal-timeconsistency
  • Design a chat backend for many isolated organizations, covering ordered channel history, offline catch-up, permission-aware search, presence, and read tracking.

    Model answermulti-tenancymessagingreal-timepermissions
  • Explain when to reach for a for loop versus a while loop, covering intent, safety, and how each choice affects the risk of infinite loops.

    Model answercontrol-flowloopsreadabilitypython
  • Walk through the steps to identify and verify the cause of elevated CPU consumption on a Linux machine, from system-wide metrics to specific code paths.

    Model answerlinuxperformancedebuggingmonitoring
  • Design a thread-safe in-process logger that fans out immutable log records to independent handlers with isolated failures, runtime reconfiguration, and bounded async buffering.

    Model answerconcurrencyloggingsystem-designpython
  • Design a browser client that streams model output into a virtualized, richly formatted chat log while surviving dropped connections and branching edits.

    Model answerfrontendstreamingvirtualizationstate-management
  • Debug failing REST handlers that add and remove movies in a watch list, fixing check ordering, ID comparison, persistence timing, and status codes.

    Model answerdebuggingrest-apihttp-status-codesasync-persistence
  • Walk through a repeatable framework for producing high-signal PR feedback — prioritized, clearly labeled, and written with minimal context — in roughly 20–30 minutes.

    Model answercode reviewengineering fundamentalscommunicationsoftware design
  • Design a Kubernetes-native system that schedules containerized DAG tasks with dependency ordering, retries, durable state, and multi-tenant isolation.

    Model answerkubernetesworkflow-orchestrationdag-schedulingreliability
  • Architect a system that ranks articles by engagement velocity with 1–2 minute freshness, covering ingestion, streaming aggregation, storage tiers, and cheap high-QPS serving.

    Model answerstreamingrankingcachingkafka
  • Design a sharded, in-memory service that decides in under 10 ms whether a viewer has hit ad/campaign caps, with async impression counting and deliberate soft-cap tolerance.

    Model answersystem-designrate-limitingdistributed-systemscaching
  • Design a maintainable framework that routes market events to trading strategies, manages order lifecycle, and runs identically in backtests and live trading.

    Model answerevent-driventradingframework-designextensibility
  • Design a calendar system for millions of users covering event storage, recurring rule expansion, time zone correctness, and a responsive frontend with optimistic updates.

    Model answerdistributed-systemsdata-modelingfrontend-architecturetime-zones
  • Design and implement a reservation widget: date/guest inputs, dynamic price breakdown, validation, disabled booking on invalid or sold-out stays, and a confirm dialog.

    Model answerfrontendstate-managementpricingvalidation
  • Design a distributed rate limiter that enforces per-user request quotas across multiple regions with low latency and no single point of failure.

    Model answerrate-limitingredisdistributed-systemstoken-bucket
  • Design an end-to-end metrics collection and alerting system for tens of thousands of hosts, then go deep on cardinality control, storage layout, or alert evaluation.

    Model answermonitoringtime-seriescardinalitydistributed-systems
  • Design a distributed scheduling service that assigns variable-length rendering jobs to a heterogeneous GPU cluster while balancing priority tiers, resource fit, and fault tolerance.

    Model answerschedulingdistributed-systemsgpuresource-management
  • Design a multiplayer live quiz system where players race to buzz in, wrong answers trigger a timed lockout, and fairness holds across varying network conditions.

    Model answerreal-timewebsocketsmatchmakinglatency
  • Design an online shopping system handling product discovery, shopping carts, order placement, inventory management, and payment processing with consistency guarantees.

    Model answere-commercedistributed-systemstransactionsidempotency

More topics