DISTRIBUTED SYSTEMS & ARCHITECTURE · SUBTOPIC
Service Discovery & Service Mesh (Envoy/Istio)
How dynamic containers find each other and share mTLS, retries, and traces.
IntermediatePart of Microservices & Service Mesh
Subtopics in Microservices & Service Mesh (2)
In plain words
When pods restart with new IP addresses every hour, a registry keeps the live directory (Service Discovery), and a tiny helper proxy beside every service (Service Mesh sidecar) handles security locks and retries automatically.
Think of it like…
Building receptionist directory (Service Discovery) + standardized company phone system that encrypts and logs every call automatically (Mesh).
Loading interactive diagram
Loading interactive exercise
Theory & how it works
Client-side vs. Server-side Discovery
In server-side discovery (Kubernetes Service / ALB), clients call one stable DNS/VIP and the platform routes to healthy pods. In client-side discovery, the caller queries Consul/Eureka and load-balances locally.
Key points & practical guide
Summary checklist
- Never hardcode container IPs
- Sidecars centralize mTLS, retries, and tracing without repeating SDK code in 5 languages
- Only adopt a full service mesh when you have enough services to justify its ops cost
When to use it
- Kubernetes clusters with 10+ polyglot microservices requiring mTLS and observability
Watch out for
- Adding retry storms inside BOTH application code AND Envoy sidecars (3 × 3 = 9× traffic!)
Quick check
Loading quiz