To find the network locations of microservices, the service
discovery pattern is used in microservices applications.
▪ It will provide to register and discover microservices in the
cluster.
▪ API Gateways for routing the traffic with client and internal
microservices. How API Gateways access the internal
backend microservices ?
▪ Service discovery pattern uses a centralized server for
«service registry» to maintain a central view of microservices
network locations.
▪ Services update their locations in the service registry at
fixed intervals. Clients can connect to the service registry and
fetch the locations of microservices.
▪ There are 2 main service discovery patterns:
▪ Client-side service discovery
▪ Server-side service discovery