Envoy Proxy & xDS API
Envoy listener-filter-cluster pipeline, the xDS dynamic configuration protocol, circuit breaking, outlier detection, and Envoy as the Istio data plane.
Overview
Overview Envoy is an open-source edge and service proxy written in C++. Originally developed at Lyft and donated to the CNCF, Envoy is the data plane for most production service meshes (Istio, AWS App Mesh, Consul Connect) and is used standalone in projects like Contour and Emissary-ingress.
Traffic flows through a layered pipeline: Listeners bind to ports and define filter chains. Network Filters process the raw byte stream. The HTTP Connection Manager (HCM) is the most important network filter, parsing HTTP. HTTP Filters process individual requests. Clusters define upstream endpoints. Envoy selects an endpoint using the configured load balancing policy (round-robin, least request, ring hash).
The xDS API (discovery services) is Envoy's dynamic configuration protocol. Control planes (Istio's Istiod, Consul) push configuration updates via gRPC streams without restarts. LDS pushes listener configs, CDS pushes cluster definitions, EDS pushes endpoint lists, RDS pushes route tables. An Envoy receiving xDS updates can shift traffic from v1 to v2 within seconds -- zero-downtime canary deployments without pod restarts or DNS changes.
Key concepts
- xDS Protocol
- Circuit Breaking
- Outlier Detection
Interview questions
- How does Istio use Envoy xDS to implement canary traffic shifting without pod restarts?
Sign up free to read the full topic
More Networking topics
Start free on Cariara · Coding problems · System design studio