Envoy is an open source edge and service proxy, designed for cloud-native and AI-native applications
open sourceApache-2.0self-hostablefree
Envoy is an L7 proxy and communication bus written in C++ that runs beside each service or at the edge, so applications talk to localhost and the proxy handles the network. It proxies TCP, UDP, HTTP/1.1, HTTP/2, HTTP/3 and gRPC through pluggable network and HTTP filter chains, with routing, retries, circuit breaking, outlier detection, active health checks, rate limiting through an external service, request shadowing and TLS termination. Hosts, clusters, routes, listeners and certificates can all be updated at runtime through its dynamic configuration APIs, which is why service meshes and gateways such as Istio and Contour use it as their data plane, and it emits detailed statistics and distributed traces. It was originally built at Lyft and is a CNCF graduated project under Apache-2.0.
Ways to install
Package managers
Problems it solves
- put a proxy next to every microservice so retries, timeouts and TLS aren't reimplemented in each language
- change routes, backends and certificates on a running proxy through an API instead of reloading config files
- load balance gRPC and HTTP/2 traffic per request instead of per connection
- stop one failing backend from taking down every caller with circuit breaking and outlier detection
- translate between HTTP/1.1, HTTP/2 and HTTP/3 at the edge of my network
- build my own service mesh or API gateway control plane on top of a programmable data plane
- mirror a copy of production requests to a new service version without affecting users
- detailed per-route latency and error statistics and distributed traces from my proxy layer
- apply global rate limits across a fleet of proxies using a shared rate limit service
- proxy Redis, MongoDB or Postgres connections with protocol-aware filters
- extend my reverse proxy with custom filters written in Lua or compiled to WebAssembly
- run an edge proxy that terminates TLS and routes by path, header and host
Features
- out-of-process architecture that works with any application language
- pluggable L3/L4 filter chain for TCP and UDP proxying, TLS client certificate authentication and Redis, MongoDB and Postgres protocols
- HTTP L7 filter chain for buffering, rate limiting, routing and more
- HTTP/1.1, HTTP/2 and HTTP/3 with translation between them
- routing and redirects by path, authority, content type and runtime values
- gRPC routing and load balancing
- dynamic configuration APIs for hosts, clusters, routes, listeners and certificates; DNS and static configuration too
- active health checking and passive outlier detection
- automatic retries, circuit breaking, global rate limiting and request shadowing
- statistics through statsd-compatible sinks and the admin port; distributed tracing
View 2 more
- Lua and WebAssembly extensions
- Docker images (Ubuntu, distroless and contrib variants) for amd64 and arm64; Homebrew on macOS
Limitations
- No stable WebAssembly filter API: the Wasm filter is experimental and its configuration is likely to change2
- No maintained APT repository: apt.envoyproxy.io isn't maintained, so Linux installs use the Docker images or static binaries3
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Takes plugins | plan not known |
Alternatives
The same job
These do what Envoy Proxy does.
- Caddy The Ultimate Server with Automatic HTTPS
- Traefik Proxy The Cloud Native Application Proxy
- HAProxy The Reliable, High Performance TCP/HTTP Load Balancer
- nginx HTTP web server, reverse proxy, content cache, load balancer, TCP/UDP proxy server, and mail proxy server
- Envoy Gateway Manages Envoy Proxy as a Standalone or Kubernetes-based Application Gateway
