Benefits of the API gateway for microservices

There is no doubt that the API gateway is beneficial for microservices. With its use, you can do this:

  • Services are invoked through the API gateway 
  • Round trips between the client and the application are reduced
  • The client has the ability to access different APIs in one place, as segregated by the gateway

It provides flexibility to clients in such a manner that they are able to interact with different services as and when they need. This way, there is no need to expose complete/all services at all. API gateway is a component of complete API management. In our solution, we will use Azure API management and explain it further in Chapter 3Integration Techniques.

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.