AI Space

Backend & Runtime / Knowledge library

Envoy

service traffic routing load balancing and observability

Network and application proxy

Why learn Envoy?

Useful for managing communication between services or at an edge. Retry and timeout policies must not amplify failures or duplicate consequential operations.

Where it came from

Envoy is an out-of-process proxy with network and application-layer features. It supports service routing, load balancing, discovery, and traffic observability.

Build your understanding

Work through these exercises in order. Try the task before opening a reference.

  1. Route a request to a test backend.
  2. Configure a bounded upstream timeout.
  3. Inspect traffic metrics.
  4. Test behavior when a backend fails.
  5. Check whether a retry policy is safe for a write operation.

Documentation and sources

Catalog research notes

Connect the ideas

Alternatives

HAProxy

Explore next

IstiogRPC (grpc)OpenTelemetry (opentelemetry)HashiCorp Consul

Real World Example

Illustrative business scenario · AI-generated from linked documentation · Not a measured customer case study

Unified Traffic Routing for Polyglot Microservices

A global retail platform operating a polyglot architecture with services written in Java, Go, and Python.

The business problem

The engineering team struggles with inconsistent load balancing and observability across disparate service frameworks, leading to silent failures during inter-service communication.

How this topic solves it

Deploy Envoy as a sidecar proxy alongside every application instance to provide a uniform L7 communication bus, standardizing routing, load balancing, and telemetry collection regardless of the underlying application language.

  1. Deploy an Envoy sidecar process alongside each application container to intercept all inbound and outbound traffic.
  2. Configure the HTTP connection manager to handle L7 routing and protocol bridging between HTTP/1.1 and HTTP/2.
  3. Enable the outlier detection subsystem to perform passive health checking and automatically eject unhealthy upstream hosts.
  4. Integrate the Envoy administration port with a centralized statistics sink to aggregate observability data across the entire mesh.
Envoy Sidecar Traffic Flow · Process flow

Traffic flows from the client through the local Envoy proxy to the application and then to the destination service via its own Envoy proxy.

Client

External request source

Envoy Sidecar 1

Edge proxy handling TLS and routing

App Service A

Internal business logic

Envoy Sidecar 2

Service-to-service proxy

App Service B

Target service

  • Client → Request → Envoy Sidecar 1
  • Envoy Sidecar 1 → Localhost → App Service A
  • App Service A → Egress → Envoy Sidecar 2
  • Envoy Sidecar 2 → Localhost → App Service B

Expected business outcome

A transparent communication mesh where developers focus on application logic while Envoy ensures consistent traffic management and visibility.

Limitations and checks

The out-of-process architecture introduces a small latency overhead per hop; verify this by monitoring the Envoy-reported request duration statistics via the administration interface.

Sources

Generated 2026-10-18 with gemini-3.1-flash-lite. Your assessment includes two questions about this example.

Catalog source: technology-maxxing. This page reproduces the existing catalog’s learning material and source links.