31 lines
815 B
Markdown
Raw Normal View History

2016-04-24 16:00:39 -05:00
---
layout: pattern
title: API Gateway
folder: api-gateway
permalink: /patterns/api-gateway/
categories: Architectural
2016-04-24 16:00:39 -05:00
tags:
- Cloud distributed
- Decoupling
2016-04-24 16:05:38 -05:00
---
2016-04-24 16:00:39 -05:00
## Intent
Aggregate calls to microservices in a single location: the API Gateway. The user makes a single
call to the API Gateway, and the API Gateway then calls each relevant microservice.
## Class diagram
2016-04-24 16:00:39 -05:00
![alt text](./etc/api-gateway.png "API Gateway")
## Applicability
Use the API Gateway pattern when
* you're also using the Microservices pattern and need a single point of aggregation for your
microservice calls
## Credits
* [microservices.io - API Gateway](http://microservices.io/patterns/apigateway.html)
* [NGINX - Building Microservices: Using an API Gateway](https://www.nginx.com/blog/building-microservices-using-an-api-gateway/)