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 961–990 of 1132 results

  • Architect a scalable platform for browsing, purchasing, and tracking book orders with high-availability search and transactional inventory correctness.

    Model answere-commerceinventory-managementdistributed-transactionssearch-infrastructure
  • Architect a multi-turn chatbot that retrieves answers from internal docs using RAG, enforces per-user access controls, and handles traffic spikes under a 2-second latency budget.

    Model answerragvector-searchaccess-controlconversational-ai
  • Explain the failure modes at clock domain crossings and select the right synchronization technique for single-bit signals, events, and multi-bit data transfers.

    Model answerdigital-designclock-domain-crossingmetastabilityhardware
  • Design a globally distributed system that delivers billions of push, email, and SMS notifications daily with low latency, at-least-once guarantees, and no duplicates on retry.

    Model answerdistributed-systemsmessagingqueuesidempotency
  • Build a distributed system that maps long URLs to short alphanumeric codes and serves fast redirects at scale.

    Model answerdistributed-systemsscalabilitycachingdatabases
  • Build a transactional ledger supporting currency transfers, 24-hour flow queries, and 30-day hourly balance history at scale.

    Model answerledgertransactionsaggregationdistributed-systems
  • Track down and fix three bugs in a Python template library: a silent AST visitor gap, a directory/file confusion in template lookup, and comment-only blocks that generate invalid Python.

    Model answerdebuggingastpythontemplate-engine
  • Design a real-time platform where players matched by language race to type the same passage, see live progress and errors, serve error-freeze penalties, and can be watched by spectators.

    Model answerreal-timewebsocketsmatchmakingfan-out
  • Architect a fault-tolerant distributed system that executes millions of recurring jobs with precise timing, at-least-once guarantees, and resilience to failures.

    Model answerdistributed-systemsschedulingfault-tolerancescalability
  • Build a system that routes skill-tagged work items to qualified engineers in under 500ms while maintaining fair load distribution across 200k workers.

    Model answerdistributed-systemsmatching-algorithmsscalability
  • Diagnose and mitigate a performance or availability drop that appears 10–15 minutes after shipping a new version to production.

    Model answerincident-responseobservabilityproduction-systems
  • Design, implement, and verify a two-endpoint workflow service—create and execute—in 45 minutes while demonstrating a disciplined plan-then-code loop with an AI assistant.

    Model answerworkflow-engineai-assisted-codinggraph-executiondependency-ordering
  • Design a system to coordinate safe, rolling maintenance operations across thousands of machines while preserving availability and handling failures.

    Model answerdistributed-systemsorchestrationstate-managementfault-tolerance
  • Design a scalable service that returns ranked autocomplete suggestions as users type search queries, handling billions of requests per day with sub-100ms latency.

    Model answerautocompletelow-latencycachingranking
  • Design a ConfigRegistry class that serves configuration to thousands of concurrent threads with lazy loading, stale fallback on failure, and no thundering herd.

    Model answerconcurrencyreliabilitypythondistributed-systems
  • A dict-backed memoization wrapper is called from many threads simultaneously — identify the race conditions and redesign it to be safe without killing throughput.

    Model answerconcurrencythreadingpythoncaching
  • Design a production HTTP API that assigns ads to page slots while enforcing per-user display limits correctly under concurrency and retries.

    Model answerapi-designconcurrencyidempotencydistributed-systems
  • Walk through pinning a Python interpreter, isolating dependencies with a lockfile, securing API credentials, and verifying the setup with a live smoke test.

    Model answerpythondev-environmentllmdependency-management
  • Design a low-latency distributed rate limiter that enforces different token budgets for different users across a fleet of stateless API gateway nodes.

    Model answerrate-limitingdistributed-systemscachingredis
  • Diagnose every failure mode in a naive charge-then-write endpoint, then redesign it to survive crashes, timeouts, retries, and concurrent duplicates.

    Model answeridempotencydistributed-systemspaymentsfault-tolerance
  • Design an inference service that groups incoming LLM requests into batches, assuming 100ms processing per batch, with attention to queueing, routing, and failure modes.

    Model answerbatchinginferencelatencythroughput
  • Design a multi-region rate limiting system that handles millions of requests per second with low latency while managing hot keys and partition failures.

    Model answerdistributed-systemsrate-limitingcachingscalability
  • Build a web app for writing, executing, and versioning LLM prompts with efficient storage for large documents and incremental edits.

    Model answerdatabase-schemaversioningobject-storagecollaboration
  • Build a system to aggregate and store operational telemetry from a large distributed fleet, supporting real-time writes and historical analytics.

    Model answertime-seriesdistributed-systemsstreamingstorage
  • Build a stream processor that detects traffic imbalances across experiment variants in real time, handling duplicate events and delayed data.

    Model answerstreamingexperimentationstatisticsstate-management
  • Design a distributed service that ingests and keeps data fresh from a third-party API capped at exactly 3 requests per second.

    Model answerrate-limitingdistributed-systemsdata-pipelinebackoff
  • Architect a system that collects content from diverse publishers, identifies user interests, and assembles personalized feeds with timely updates.

    Model answerfeed-systemspersonalizationdata-ingestioncaching
  • Build a scalable service that temporarily locks inventory when users add items to their cart, prevents duplicate allocation, and releases stock automatically.

    Model answerconcurrencydistributed-systemscachingdatabase-design
  • Contrast storage duration and allocation, explain TLS-based security in HTTPS, and compare reliable streams with unreliable datagrams.

    Model answerfundamentalsnetworkingmemory-management
  • Design a rate limiting service that enforces API key quotas consistently across multiple geographic regions with low latency and partition tolerance.

    Model answerdistributed-systemsrate-limitingscalability

More topics