The API gateway

In the styles of collaboration section, we discussed two styles using which we can foster intercommunication between microservices. Our application is spread into various microservices:

  • Product service
  • Order service
  • Invoice service
  • Customer service

In our FlixOne bookstore (user interface), we need to show a few details:

  • Book title, author name, price, discount, and so on
  • Availability
  • Book reviews
  • Book ratings
  • Publisher ranking and so on

Before we check out the implementation, let's discuss the API gateway.

The API gateway is nothing but an implementation of Backend For Frontend (BFF). Sam Newman introduced this pattern. It acts as a proxy between client applications and services. In our example, we are using Azure API ...

Get Building Microservices with .NET Core now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.