O'Reilly logo

Practical Microservices by Umesh Ram Sharma

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

DNS

The first solution that comes to mind is DNS. DNS maps the name with the IP address. Multiple addresses can be mapped to a single service. But, what happens when a new service spins up? We will have to add an entry in the DNS. Additionally, if we are changing the IP address of any service, the change entered in the DNS will not reflect immediately. It has to wait for TTL to reflect everywhere. DNS has the advantage of being simple and easy, and it can be used for this, but it doesn't give the flexibility for the dynamic microservice environment. Spinning up multiple copies of services is a common scenario in companies where incoming traffic is big. In this kind of environment, if any service wants to talk with a particular instance of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required