Dynamic Request Routing With Envoy
summary
Shows how Envoy reroutes live production requests by propagating an X-CTX-override header via distributed context and using a custom HTTP filter to parse key→destination rules, inject metadata for subset routing, or create on‑the‑fly endpoints with the original_dst cluster and DNS via the dynamic forward proxy. Built a Chrome extension, mobile debug builds, and a CLI wrapper to inject overrides. Works for targeted canaries and laptop testing but requires edge stripping of overrides and strict access controls to avoid arbitrary outbound routing.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 1:28Dynamic request routing
- 2:31Routing in call graphs
- 3:14Context propagation needs
- 4:20Header-based routing with X-CTX-Override
- 5:02Envoy filter for routing
- 6:54Original destination routing
- 7:58Async DNS in filter
- 9:04Developer tooling
- 10:06Security and debugging








