PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/System Design/Confluent

Design a distributed key-value store at scale

Last updated: Mar 29, 2026

Quick Overview

This question evaluates expertise in distributed systems and large-scale storage architecture, including competencies in data partitioning and sharding, replication and consistency models, storage layout and I/O optimization, performance and fault-tolerance trade-offs, and operational observability.

  • hard
  • Confluent
  • System Design
  • Software Engineer

Design a distributed key-value store at scale

Company: Confluent

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Technical Screen

Design a globally distributed key-value store optimized for read-heavy workloads. Address: ( 1) OS-level performance considerations (threads vs. async I/O, context switching, memory management, filesystem tuning); ( 2) storage layout and indexing choices, including compaction and write amplification trade-offs; ( 3) partitioning and sharding strategies, key distribution, and rebalancing; ( 4) replication and caching layers (write/read paths, coherence, TTLs, invalidation); ( 5) consistency models and CAP trade-offs, including client-visible guarantees; ( 6) failure detection, fault isolation, leader election, and recovery; ( 7) hotspot mitigation, backpressure, and rate limiting; ( 8) capacity planning, SLAs/SLOs, and observability. For each component, justify design choices and discuss performance, complexity, and resource trade-offs.

Quick Answer: This question evaluates expertise in distributed systems and large-scale storage architecture, including competencies in data partitioning and sharding, replication and consistency models, storage layout and I/O optimization, performance and fault-tolerance trade-offs, and operational observability.

Related Interview Questions

  • Design an RSS News Feed Service - Confluent (medium)
  • Design a News Feed and Mail Service - Confluent (medium)
  • Design RSS Feed and Temporary Mail - Confluent (medium)
  • Design a temporary email service - Confluent (hard)
Confluent logo
Confluent
Jul 26, 2025, 12:00 AM
Software Engineer
Technical Screen
System Design
18
0

System Design Prompt: Globally Distributed, Read-Optimized Key-Value Store

Context and minimal assumptions

Design a globally distributed key-value (KV) store optimized for read-heavy workloads. Assume:

  • Workload: 90–95% reads, 5–10% writes; point lookups dominate, range scans are rare.
  • Data model: opaque values by key; keys up to ~1 KB; median value ~1 KB (max 1 MB).
  • Scale: tens of TB per region; multi-tenant; multi-region across continents.
  • Latency targets: in-region p99 read ≤ 5–10 ms; global p99 read ≤ 150 ms via nearest region.
  • Availability/durability: ≥ 99.99% availability; RPO 0 within a region; cross-region replication tolerated to be async by default.

Task

Propose an end-to-end design and justify your choices. Address the following areas with performance, complexity, and resource trade-offs:

  1. OS-level performance considerations (threads vs async I/O, context switching, memory management, filesystem and kernel tuning).
  2. Storage layout and indexing (on-disk format, compaction strategy, write amplification trade-offs).
  3. Partitioning and sharding (key distribution, shard sizing, rebalancing strategy).
  4. Replication and caching layers (write/read paths, coherence, TTLs, invalidation strategies).
  5. Consistency models and CAP/PACELC trade-offs (client-visible guarantees and tunable options).
  6. Failure detection, fault isolation, leader election, recovery and repair.
  7. Hotspot mitigation, backpressure, and rate limiting (per-tenant fairness and overload control).
  8. Capacity planning, SLAs/SLOs, and observability (metrics, tracing, alerting; how to validate the design).

Be explicit about assumptions, call out pitfalls/edge cases, and use small numeric examples where helpful.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Confluent•More Software Engineer•Confluent Software Engineer•Confluent System Design•Software Engineer System Design
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.