Envoy From the Inside Out: A Developer's Guide
Talkat EnvoyCon North America 2025 · on Monday, 2025-11-10· at 10:40· Building B | Level 4 | B406b-407·
summary
Explains how Envoy creates a per-connection state with separate filter instances and read/write buffers, details the listener vs cluster subsystems, and walks the connection lifecycle: socket bind → listener filters (once) → filter chain matching → network filters (initializeReadFilterCallbacks, onNewConnection, onData, onEvent) → teardown. Calls out practical hazards: using stop iteration can deadlock without handling endstream or timeouts, and bounded buffers with watermarks cause backpressure. Recommends cheap filters first, log connection IDs, and test chunked data.
AI-written summary · about
chapters (17)
- 0:00Envoy introduction
- 1:02Core architecture
- 3:35Listeners explained
- 5:20Connection lifecycle
- 7:27Event loop basics
- 8:53Listener filters
- 10:16Filter chain matching
- 11:20Network filters data
- 13:53Filter interface
- 16:44Filter return values
- 19:13IP allow list example
- 20:19Filter iteration examples
- 24:31Connection cleanup
- 25:14Memory management
- 26:57Filter dev best practices
- 27:38Summary
- 28:12Q&A
related talks
21mDeep Dive: Envoy
37mEnvoy Internals Deep Dive
33mIntro: Envoy
33mIntro: Envoy
33mGet to know Envoy - the modern proxy for cloud-native infrastructure - Baptiste Collard
23mA Practical Guide to Understanding and Configuring Envoy Filters
15mBeyond OS Sockets: Custom Socket Interfaces in Envoy
34mIntro: Envoy
