Service Discovery Patterns in Microservices
In a real-world situation, due to various reasons like auto-scaling and fault tolerance mechanisms, often you will need to spin up and spin down various applications (containers). Because of this, their locations like IP addresses, Hostnames, etc may change. For this reason, DNS - with its time-to-live expiration values - may be a poor fit for service discovery and location. [...]