DEV Community


Explain Service Discovery Like I'm Five

tirthaguha profile image Tirtha Guha ・1 min read

Discussion (2)

Editor guide
kinopyo profile image

Hi, I'm also new to this, but I can share a great article that had helped me a lot to understand the concept and its big picture.

In the context of Microservices, service instances could change dynamically because of autoscaling, failures, and upgrades, so that the traditional way of hard coding the static network location (ip, port) is not sufficient.

Service Discovery as an architecture pattern provides a central data store known as Service Registry to bridge between the client (your application) to other instances in the cloud.

For example, you could code your app to call the Logging microservice with the key "logging". Then in the service registry, "logging" will be mapped to the live-and-healthy instances.

This is just a brief introduction, take some time to read the article and other Microservice strategies if necessary. Hope this helps 🙂

tirthaguha profile image
Tirtha Guha Author

Thanks @kinopyo , I've done some googling myself and was able to get a generic idea. I was looking for a simplified explanation here, like I am five.