etcd
1. Executive Summary
etcd is an open-source, strongly consistent, distributed key-value store used as the coordination and configuration backbone for Kubernetes and many cloud-native systems. It exposes a gRPC v3 API with multi-version concurrency control (MVCC), leases, transactions, watch streams, and concurrency primitives built on a replicated log maintained by the Raft consensus algorithm.
etcd optimizes for reliability, predictable consistency, and watch-based reactivity over raw throughput. Writes traverse Raft quorum; reads can be linearizable (quorum read or serializable with constraints) or cheaper serializable from local state depending on API options. The Kubernetes control plane stores all cluster state in etcd—making etcd operations, backup, and upgrade strategy a principal-level concern for platform architects.
This chapter covers etcd's architecture, Raft integration, data model, leases and locks, watch semantics, failure modes, Kubernetes coupling, performance tuning, and interview framing.