Sidecar proxy: the proxy every call goes through
Step 1 · The pattern
Services call each other directly
Service A calls the payments service directly. Each team writes its own retries, timeouts, TLS and metrics, a little differently every time. (All numbers are illustrative.)
- a call
- succeeded
In short
Sidecar proxy: the proxy every call goes through: how it works and how it breaks
A service mesh (Istio, Linkerd and others) puts a small proxy next to every service. Each call leaves through the caller's proxy and arrives through the callee's: the proxies load-balance, retry, time out, encrypt and record metrics, so every service gets those without writing them. They learn where everything is from a control plane. The price is that the mesh sits on every call's path. Each proxy adds some latency, CPU and memory, and a failure in the mesh is a failure of everything: proxies that stop receiving updates route to old addresses, and proxies all restarted at once that cannot load their configuration let no service reach any other. Keep proxies on their last known good routes when the control plane is unreachable, roll out restarts and upgrades gradually, and give the mesh its own health checks.
What this simulation simplifies
- One pair of proxies stands for hundreds.
- The trap's cause is a flag; in practice it is a bug, a bad config or a version mismatch.
How this comes up in interviews
"Would you adopt a service mesh? What are the risks?"
Then they ask
- What happens if the control plane fails?
- How do you upgrade it?
- Who owns retries?
A strong answer covers
- Mesh gives consistent retries, timeouts, mTLS and metrics without app code.
- It adds a proxy on every call: latency, CPU and memory per pod.
- The mesh becomes a dependency of everything; design for its failure.
- Proxies keep last known good config; the control plane is off the call path.
- Staged upgrades and restarts; one layer owns retries.
Points to cover, not a script. Say them in your own words and tie them to a system you have worked on.
On one page: the track cheat sheet.
Sources: Istio docs: Performance and scalability (sidecar latency and resource use) ↗ · Monzo community: the 27 October 2017 outage write-up ↗ · Monzo: Building a modern bank backend (why it put a proxy on every machine, 2016) ↗ · Report a problem
Diagrams are our own simulations: the timings, rates and counts in them are illustrative, not measurements. Captions are original wording.