Interview's MateSystem Design
Interview's Mate

System Design

Architecture & trade-offs

Visualizer

DSA Visualizer
All 32 lessons
Custom Playground
Try your own examples

Learning

System Design
31 architecture topics
SQL Learning
160 foundations → production topics
AI Engineering
160 LLM → backend topics
Data Science
160 Python → MLOps topics
Data Engineer
160 SQL → streaming topics
Docker
160 Docker learning topics
Kubernetes
160 K8s fundamentals → cloud
Java LearnSoon
Coming soon
Python Learn
Interview Q&A & internals
JavaScript Learn
Closures, async & DOM Q&A
Tech Learn
Search, practise & track Q&A
AI DSA Practice
Solve coding problems
Theme
Home
All topics/Microservices & Service Mesh
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
Practice in AI HLD
Subtopics in Microservices & Service Mesh (2)
OverviewSaga & OutboxDiscovery & Mesh

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
Previous subtopic
Saga & Transactional Outbox Patterns
Back to overview
Full Microservices & Service Mesh Lesson