Interview Prep/Networking/DNS & Service Discovery

What are the limits of DNS-based load balancing?

IntermediateScenarioDNS & Service Discovery
Answer

Situation read → DNS rotation spreads clients roughly but does not know about load or health in real time.

What I'd do →

  1. Round-robin returns several A records in rotating order, but clients and resolvers cache them
  2. Some clients always pick the first record
  3. With health checks you can remove dead IPs, but only after TTL expiry
  4. Use a real load balancer or anycast for fine-grained balancing
  5. Verify with repeated dig +short name

Why → DNS balances connection setup at best, and only as fast as caches expire.

Interview tip → Say DNS is for steering regions, not balancing requests.

All Networking questions Roadmap: Networking for DevOps

More on DNS & Service Discovery