Envoy: A Programmable L7 Proxy and Service Mesh Data Plane
Envoy is a proxy built to be configured by other software rather than by a human editing a file.
Dynamic configuration is the point
Most proxies read a config file and reload. Envoy can do that, and what it was designed for is xDS: a set of gRPC APIs through which a control plane pushes clusters, routes and listeners to a running proxy with no restart.
That is why Envoy is the data plane inside Istio, Consul, Gloo, Contour and others. Those products are control planes; Envoy does the forwarding.
Which also means running Envoy by hand is unusual and somewhat awkward. If you want a proxy you configure yourself, Traefik, Caddy, Nginx Proxy Manager or HAProxy are all more pleasant. Our reverse proxies guide covers the choice.
What it does better than the alternatives
Observability. Envoy emits detailed statistics, access logs and distributed tracing spans by default, including to Jaeger. Request-level visibility is built in rather than bolted on.
Protocol handling. HTTP/1.1, HTTP/2, HTTP/3, gRPC with proper streaming support, and arbitrary TCP and UDP. gRPC in particular is handled better than by most alternatives.
Resilience primitives. Retries, timeouts, circuit breaking, outlier detection and rate limiting are first-class configuration rather than modules.
Static configuration, if you insist
static_resources:
listeners:
- address:
socket_address: { address: 0.0.0.0, port_value: 10000 }
filter_chains:
- filters:
- name: envoy.filters.network.http_connection_manager
The configuration is verbose and deeply nested. That is the cost of being machine-generated: it was never optimised for humans.
Operational caution
Envoy is a C++ process with real memory usage under load, and its buffering behaviour is configurable in ways that matter. Watch the admin interface statistics rather than guessing, and do not expose the admin port, which can drain listeners and dump configuration.
License
Envoy is released under the Apache License 2.0.