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 1021–1050 of 1132 results

  • Design a message queue where each message carries multiple topic tags and consumers receive only messages whose tags overlap their subscription set.

    Model answermessage-queuepub-subbitmasksystem-design
  • Design a new feature for enterprise teams managing large fleets of edge devices, covering target user, core problem, MVP scope, metrics, and risks.

    Model answerproduct designIoTedge computingenterprise
  • Design a system that enables users to transfer funds between accounts with correct balances, handling failures, retries, and concurrent operations.

    Model answerfinancial-systemsdistributed-systemstransactionsidempotency
  • Design a search system that indexes post content, handles include/exclude queries, and ranks matches by term frequency across distributed infrastructure.

    Model answerindexingdistributed-systemssearchranking
  • Build a scalable service that tracks prices across e-commerce sites, stores historical data, and notifies users when prices drop below their thresholds.

    Model answerdistributed-systemstime-seriesnotificationsdata-pipelines
  • Design a messaging backend that sustains 1M concurrent connections and 50K messages per second with sub-100ms end-to-end latency.

    Model answermessagingkafkawebsocketscassandra
  • Build the issuer backend that decides approve/decline for card transactions in under 200ms, handles settlement flows, and securely isolates sensitive cardholder information.

    Model answerpaymentslow-latencysecuritydata-architecture
  • Design a system to efficiently query total subordinate counts in a corporate hierarchy while handling organizational structure changes.

    Model answertreescachingdistributed-systemsdata-modeling
  • Design a scheduler that runs jobs after a specified delay, with APIs, data structures, persistence, concurrency control, and recovery.

    Model answerlow-level-designschedulingconcurrencydurability
  • Design a production-grade REST API for serving machine learning predictions on images, covering endpoints, schemas, auth, reliability, and safety.

    Model answerapi-designmachine-learningrestauthentication
  • Design a production gateway that receives streaming LLM requests, batches them efficiently, routes to GPU backends, and handles autoscaling under bursty traffic.

    Model answersystem designLLM servinginferencebatching
  • Repair a broken Spring Boot search endpoint so it handles partial case-insensitive matching, field targeting, popularity ordering, and a published-only filter.

    Model answerspring-bootdebuggingjpasearch
  • Build a messaging platform where messages automatically vanish after being read, supporting multiple devices, offline scenarios, and abuse prevention.

    Model answermessagingdistributed-systemsreal-timesecurity
  • Design a distributed pipeline that deduplicates high-volume event streams, reconciles them against a delayed authoritative source, and produces auditable daily aggregates.

    Model answerstreamingidempotencydeduplicationreconciliation
  • Build a comment system with sort persistence and an image-generation service that handles long-running GPU jobs with reliable ordering and status delivery.

    Model answercrudasync-jobspaginationpersistence
  • Design a system that executes jobs composed of dependent tasks, managing state, handling failures, and coordinating parallel work across distributed workers.

    Model answerdistributed-systemsorchestrationstate-machinesreliability
  • Design a thread-safe in-memory cache with LRU eviction and a CPU-intensive reconciliation service that handles traffic spikes and manages computational limits.

    Model answercachingconcurrencyscalabilitydistributed-systems
  • Build the architecture for a multi-client file storage system with hierarchical organization, collaborative sharing, chunked uploads, and cross-device synchronization.

    Model answerdistributed-systemsstorageapi-designconsistency
  • Debug a backend service that degrades under load, then calculate the infrastructure needed to support given traffic assumptions.

    Model answercapacity-planningperformanceinfrastructurescalability
  • Choose connection modes, tune query performance, and understand filter precedence for dashboards over large datasets in business intelligence platforms.

    Model answerbusiness-intelligencedata-architectureperformance-optimization
  • Design a scalable auction system handling 500k live auctions, 5M watchers, proxy bidding, reserve prices, buy-it-now, soft close, and sub-200ms bid latency.

    Model answerauctionsreal-timeconsistencysharding
  • Investigate why a network server's P99 latency jumps from 10ms to 2s under load despite low CPU usage, and propose a plan to identify the bottleneck.

    Model answerperformanceconcurrencyprofiling
  • Design a scalable service that converts long URLs into compact aliases and redirects users back to the original destinations.

    Model answerdistributed-systemsscalabilitycachingdatabases
  • Design a scalable system to capture high-frequency GPS data from mobile workout sessions, compute activity metrics, and serve historical workout information.

    Model answerhigh-throughputgeospatialtime-seriesdata-modeling
  • Design a service that converts card transactions to loyalty points, ensuring exactly-once processing, precise arithmetic, and safe redemptions.

    Model answerdistributed-systemsledgeridempotencyconsistency
  • Design a scalable payment platform handling donation submissions with async processing, idempotency guarantees, and burst traffic support.

    Model answerpaymentsasync-processingdistributed-systemsidempotency
  • Describe how log-structured databases decouple compute from storage, use quorum-based replication, achieve fast recovery, and handle multi-version concurrency control.

    Model answerdistributed-systemsdatabasesstorage-enginesreplication
  • Build the infrastructure for tracking and displaying message state (sent, delivered, read) in a messaging platform serving millions of users.

    Model answerdistributed-systemsreal-timescalability
  • Design a distributed system that ingests exception logs from microservices, groups similar errors, and maintains a live top-10 most common exceptions dashboard.

    Model answerdistributed-systemsstreamingdata-pipelineaggregation
  • Design a normalized database schema supporting users, roles, permissions, role inheritance, and both global and resource-scoped access control.

    Model answerdatabase-designauthorizationnormalizationschema-design

More topics