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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.