xDS Protocol (Envoy Discovery Service API)
In plain English
Plain definition
The xDS protocol lets a control plane stream listeners, routes, clusters, endpoints and secrets to Envoy proxies. Versioned resources and ACK or NACK responses reveal whether a proxy accepted each update; stale versions, rejected configuration or an overloaded control plane can leave a fleet temporarily inconsistent.
xDS originated with Envoy but has since become a de facto standard implemented by Istio, Contour, Gloo, gRPC’s own client-side load balancing and, until AWS ended support on 30 September 2026, AWS App Mesh. The protocol defines a set of discovery services, each responsible for one layer of the proxy’s config graph: LDS (Listener Discovery, what ports/filters to bind), RDS (Route Discovery, virtual hosts and match rules), CDS (Cluster Discovery, upstream service definitions), EDS (Endpoint Discovery, the actual IP:port members of a cluster), and SDS (Secret Discovery, TLS certs/keys). These form a dependency chain: a Listener references Routes, Routes reference Clusters, Clusters reference Endpoints. The control plane must push updates in the correct order to avoid dangling references, which is why Envoy defines ADS (Aggregated Discovery Service) to multiplex all resource types over a single gRPC stream so the control plane can sequence updates explicitly.
The update model is where the engineering gets subtle. Basic State-of-the-World (SotW) xDS requires the control plane to resend every subscribed Listener and Cluster resource on every change, which Envoy documents as a scalability limitation for large fleets. Incremental xDS (Delta xDS) addresses this by sending only added/removed/updated resources plus explicit resource names the client already has, greatly reducing bandwidth and CPU on both sides for large fleets. Consistency is enforced via the version_info and nonce fields in the DiscoveryRequest/DiscoveryResponse exchange: a client ACKs a version it successfully applied, or NACKs with an error detail, and the control plane must handle proxies that are stuck on stale versions without breaking traffic for the fleet.
The biggest operational risk is that updates are not atomic across resource types. Because CDS, RDS, and EDS are logically separate streams (even when aggregated), a race where a route references a cluster not yet installed causes traffic black-holing until the missing resource lands. This is why Envoy’s make-before-break model recommends that CDS/EDS updates precede RDS updates that reference them, and teardown happens in reverse. Control planes like Istio’s istiod compute this dependency graph per-proxy (per Envoy identity, via its xDS node ID) and generate scoped configuration snapshots, which is also the basis for canary and multi-tenant isolation at the mesh layer.
xDS is what lets a mesh to treat configuration as a continuously reconciled desired state rather than a deployment artefact: control planes watch Kubernetes Endpoints/Services, translate them into xDS resources, and push diffs, much like a Kubernetes controller reconcile loop but targeting proxy memory instead of etcd. That has direct consequences for FinOps and reliability: a control plane outage does not immediately break traffic (Envoy caches last-known-good config), but stale EDS during a scale-up event can route to terminated pods, and xDS push storms during mass rollouts are a common cause of control-plane CPU exhaustion in large meshes.
Related reading
Authoritative Sources
About this page
Was this useful?
Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.
Recommended reading
More from KBY that goes with this term.