Design a scalable key-value configuration service

Read the full interview experience this question came from →

Quick Overview

Design a scalable key-value configuration service evaluates requirements, scale assumptions, API/data design, architecture, trade-offs, failure modes, and rollout in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

Design a scalable key-value configuration service

Company: Meta

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Onsite

Design a globally distributed key–value configuration service used by thousands of microservices. Define the key schema (namespacing, composability, versioning) and value schema (serialization format, validation, schema evolution). Explain partitioning/sharding strategy, indexing, and storage engine choices (e.g., LSM-tree vs B-tree), including write/read paths and hot-key mitigation. Specify the consistency model (linearizable vs eventual), leader election, replication/quorums, and handling of network partitions and failover. Describe support for transactions, watches/subscribe for updates, TTLs, and backup/restore. Provide capacity planning, SLAs, multi-region replication strategy, and testing approaches.

Overview: Design a scalable key-value configuration service evaluates requirements, scale assumptions, API/data design, architecture, trade-offs, failure modes, and rollout in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

Read the full Meta Software Engineer interview experience this question came from

|Home/System Design/Meta
Meta logo
Meta
Jul 15, 2025
hardSoftware EngineerOnsiteSystem Design
5
0

Design a scalable key-value configuration service

Design a Globally Distributed Key–Value Configuration Service

Background

You are asked to design a globally distributed key–value configuration service powering thousands of microservices across multiple regions. The service should provide low-latency reads, strong safety for updates, and global availability.

Requirements

  • Define the key schema (namespacing, composability, versioning).
  • Define the value schema (serialization format, validation, schema evolution).
  • Explain partitioning/sharding, indexing, and storage engine choices (e.g., LSM-tree vs B-tree).
  • Describe write/read paths and hot-key mitigation.
  • Specify the consistency model (linearizable vs eventual), leader election, replication/quorums, and handling of network partitions and failover.
  • Describe support for transactions, watches/subscribe for updates, TTLs, and backup/restore.
  • Provide capacity planning, SLAs, multi-region replication strategy, and testing approaches.

Assumptions

  • Read-heavy (≫95% reads), small values (0.5–8 KB), small key space (≤ few million keys), but very high fanout of clients.
  • Writes are rare but correctness-critical; clients expect fast propagation of changes.
  • Multi-tenant namespaces, multi-region footprint, thousands of services, tens of thousands of instances.

Clarifying Questions to Ask Guidance

  • Clarify users, core use cases, read/write patterns, scale, latency, availability, and data retention.
  • State explicit assumptions before making sizing or architecture decisions.
  • Prioritize the functional path first, then address reliability, security, observability, and rollout.

What a Strong Answer Covers Guidance

  • A scoped requirements summary with concrete non-goals and success metrics.
  • API, data model, architecture, consistency, capacity, and operations.
  • Reasoned trade-offs among simple and scalable designs, including bottlenecks and failure modes.
  • A validation, monitoring, migration, and launch plan appropriate for the risk level.

Follow-up Questions Guidance

  • What breaks first at 10x traffic or data volume?
  • How would you degrade gracefully during dependency failures?
  • What metrics and alerts would prove the design is healthy after launch?

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...