Microservices In Practice: Developing Instagram Clone —Gateway Service

Amr Saleh
Javarevisited
Published in
2 min readJun 23, 2020

--

This is part 8 of Developing Instagram Clone series, other parts are linked below

  1. Developing Instagram Clone: Introduction.
  2. Developing Instagram Clone: Discovery Service.
  3. Developing Instagram Clone: Auth Service.
  4. Developing Instagram Clone: Media Service.
  5. Developing Instagram Clone: Post Service.
  6. Developing Instagram Clone: Graph Service.
  7. Developing Instagram Clone: Newsfeed Service.
  8. Developing Instagram Clone: Gateway Service.
  9. Developing Instagram Clone: Front-end Service

In Microservices architecture the system is split into multiple services, these services shouldn’t be visible to the consumer (the front-end in our case).

You should provide a unified interface to the consumers, this unified interface is the gateway service.

API Gateway Benefits

  • Serves as a single point of entry: An API gateway is a single point-of-entry (or “gateway”) for the group of Microservices that sit behind it.
  • Authentication and authorization: An API gateway makes sure that the client has the rights to…

--

--

Amr Saleh
Javarevisited

I’m a software engineer who is passionate about software architecture and design. Enjoy coding in Java, Scala, and JavaScript.