Service Discovery in Microservice Architecture.

In this article I will try to explain about Service Discovery in the Microservices Architecture.

As we all know that, in MS Architecture all the services may have n number of instances running. In this type of architecture, services might be scaled up…

Image descriptionIn this article I will try to explain about Service Discovery in the Microservices Architecture.

As we all know that, in MS Architecture all the services may have n number of instances running. In this type of architecture, services might be scaled up or down which make the changes in number of instances particular services. As a result, all of the instances of the services are running on different port. Then how can an application handle request and find the suitable or desirable service among these ports ? That’s where we need Service Discovery mechanism in order to serve request according to need of application.

What is Service Discovery ?

It is an infrastructure which keep tracks of all the services instances and route the request to it.

There are 2 Ways to Implement such infrastructure.

1.Service Mesh

  • This is used in mostly containerized infrastructure, where container keeps tracks of services.

2.Service Registry

  • When application does not have any control over network and there can be lot of inclusion of services then this pattern is more useful as it is working at application level.

  • Here, whenever a new service gets a life it will register it self to this service registry. So now if application wants to know about this service it will query to this service registry and service registry will provide metadata about requested services.

  • In addition to these, if one service has more than one instances running and registered @ service registry then service registry will provide port of request service to the application in such a way that load can be balanced in more efficient way.


Print Share Comment Cite Upload Translate
APA
Ashik Patel | Sciencx (2024-03-29T05:14:30+00:00) » Service Discovery in Microservice Architecture.. Retrieved from https://www.scien.cx/2022/03/24/service-discovery-in-microservice-architecture/.
MLA
" » Service Discovery in Microservice Architecture.." Ashik Patel | Sciencx - Thursday March 24, 2022, https://www.scien.cx/2022/03/24/service-discovery-in-microservice-architecture/
HARVARD
Ashik Patel | Sciencx Thursday March 24, 2022 » Service Discovery in Microservice Architecture.., viewed 2024-03-29T05:14:30+00:00,<https://www.scien.cx/2022/03/24/service-discovery-in-microservice-architecture/>
VANCOUVER
Ashik Patel | Sciencx - » Service Discovery in Microservice Architecture.. [Internet]. [Accessed 2024-03-29T05:14:30+00:00]. Available from: https://www.scien.cx/2022/03/24/service-discovery-in-microservice-architecture/
CHICAGO
" » Service Discovery in Microservice Architecture.." Ashik Patel | Sciencx - Accessed 2024-03-29T05:14:30+00:00. https://www.scien.cx/2022/03/24/service-discovery-in-microservice-architecture/
IEEE
" » Service Discovery in Microservice Architecture.." Ashik Patel | Sciencx [Online]. Available: https://www.scien.cx/2022/03/24/service-discovery-in-microservice-architecture/. [Accessed: 2024-03-29T05:14:30+00:00]
rf:citation
» Service Discovery in Microservice Architecture. | Ashik Patel | Sciencx | https://www.scien.cx/2022/03/24/service-discovery-in-microservice-architecture/ | 2024-03-29T05:14:30+00:00
https://github.com/addpipe/simple-recorderjs-demo