Microservices Communication : API Gateway , Service discovery server Quick Start — Part- 1

Anupriya
3 min readJul 23, 2020

In this blog i will be explaining about

  • Why and What is API Gateway?
  • Service Discovery

Why and What is API Gateway ?

Without API Gateway
  • The important reason of the microservices pattern is to create an independent service which can be scaled and deployed independently.
  • So in a complex business domain, more than 50–100 microservices is very common.
  • Let’s imagine a system where we have 50 microservices ,now we have to implement a UI, so it calls multiple services to fetch and show the important information in the UI.
  • From a UI developer perspective, to collect information from fifty underlying microservices, it has to call fifty REST APIs, as each microservice exposes a REST API for communication.
  • So the client has to know the details of all REST API and URL patterns/ports to call them. Certainly, it does not sound like a good design.It is kind of a breach of encapsulation
  • Moreover, think about the common aspects of a web program, like CORS, authentication, security, and monitoring in terms of this design- each microservice team has to develop all these aspects into its own service, so the…

--

--

Anupriya
Anupriya

Written by Anupriya

Software Developer | Addicted to learning and programming :)