Service Discovery in Microservices

Kamal Janghel
2 min readMay 7, 2024

--

When microservice run locally, It has dedicated IP address
but when i got deploy in cloud there is no dedicated IP address, everything will be dynamics IP address therefore can not make assumption that service will have this IP address

It become difficult to implement because we don’t know, which instance we have to call, we can hard code one at a time, so the question here is

How service 1 will recognize to call service 2 ?

Service discovery is one of the solution, Its a process that automatically detecting devices and service on a network.
Service discovery protocol SDP is a network standard that accomplish detecting of network by identifying resources.

2 Types of service Discovery

Service side service discovery — allow client application to find service through a router or a load balancer.
Client side service discovery — allow client application to find by query a service registry.

Types of Service Discovery

3 Component of service discovery

Provider — Register and deregister itself when entring and existing system
Consumer — Get the location in registry then connect to service provider
Register — DB which contain location of services

Components of Service Discovery

Happy Learning !!!

--

--