envoy-guide
Module 1 · Foundations·6 min·beginner

Meet Envoy

Understand why Lyft built Envoy and who uses it today.

Where Envoy comes from

Envoy was created at Lyft by Matt Klein and his team starting in May 2015, and open-sourced in September 2016. It's written in C++ for one reason: predictable performance. Every microsecond of overhead matters when you put a proxy in the hot path of every request between every service.

Today Envoy is a graduated CNCF project — the same tier as Kubernetes, Prometheus, and Helm — and it's the data plane behind:

  • Istio (the most-used service mesh)
  • AWS App Mesh, Google Cloud Service Mesh, Consul Connect, Kuma
  • Envoy Gateway, Emissary-ingress, Gloo, Contour (API gateways)
  • A long list of in-house platforms at companies like Pinterest, Stripe, and Square.

If you've ever made a request to one of those companies' APIs, an Envoy probably handled it.

Why a new proxy in 2016?

By 2015, microservices were eating monoliths everywhere, but operationally things were getting worse. Each team picked their language, then reimplemented the same boring networking concerns from scratch:

  • Their own retry logic. Different bugs in each language.
  • Their own TLS. Different cipher suites in each repo.
  • Their own metrics. No two services had the same dashboards.
  • Their own circuit breakers — if they had them.

The existing options weren't a great fit:

  • nginx and HAProxy were excellent for static reverse proxying but awkward for the dynamic, API-driven world of microservices. Reloading config meant rewriting files.
  • Linkerd 1.x ran on the JVM. Memory footprint per sidecar was painful at microservice scale.

Envoy filled the gap: fast, dynamic-config-first (xDS), microservice-native, and language-agnostic.

Real-world example · Lyft
Problem
Lyft's outage post-mortems kept landing on the same root cause: "the network." But the real cause was that their Python service had different retry semantics than their Go service, which had different timeouts than their PHP service. Each language team had its own bugs.
Envoy solution
Move all networking out of the apps and into a uniform sidecar process — Envoy. Apps stop caring about retries, TLS, or timeouts; Envoy handles them identically for every service. By late 2015, every Lyft request flowed through Envoy.

Read Matt Klein's first-person retrospective: 5 years of Envoy OSS. It's the most honest "what we got right and wrong" piece in this space.

Hands-on: prove Envoy is real on your machine

You're going to run a real Envoy in 30 seconds — no config, just enough to see the admin interface.

Hands-on · Pull and run Envoy

First, pull the official image:

Shell
docker pull envoyproxy/envoy:v1.31-latest

Then run it with its built-in default config:

Shell
docker run --rm -p 9901:9901 -p 10000:10000 envoyproxy/envoy:v1.31-latest

Open http://localhost:9901 in your browser. You're looking at Envoy's admin interface — config dump, stats, runtime flags, the works. We'll spend Lesson 4 properly touring it. For now, just confirm it's there.

Stop with Ctrl+C when you're satisfied.

Pin your version

Production deployments pin Envoy to a specific tag (e.g. v1.31.2) and upgrade deliberately. For learning, the rolling v1.31-latest tag is fine.

What this means for the next 14 lessons

Every config you'll write, every concept you'll learn, runs against this same Docker image. No local builds, no language SDKs to install. Just YAML and curl.

That's the magic of Envoy in a course like this: the runtime never gets in your way.

Quick check

Which of these projects does NOT use Envoy as its data plane?

Practical task
Finish the quick check and tick off the task to unlock.
Quick checkTasks 0/3