API Gateways - Modern Application Development on AWS

API Gateways

The API gateway pattern can be used when there are many calls to backend services, and when the content provided varies depending on the client interface or device type. API gateways can consolidate different backend services behind a unified API and serve the content required for each device.

Figure 1 – Example of communication between services and mobile devices and computer browsers without an API gateway

Figure 2 – Example of communication between services and mobile devices and computer browsers with an API gateway

If you plan to use the API gateway pattern in the AWS Cloud, you can use Amazon API Gateway to integrate with backend endpoints. Amazon API Gateway also enables you to create, publish, maintain, monitor, and protect REST or WebSocket APIs at any scale.

Amazon API Gateway provides many other capabilities required of production-grade APIs, such as throttling, caching, logging, API tokens, authentication or authorization integrated with Amazon Cognito, custom authorizers, and proxying of requests to other AWS services. One essential AWS service that Amazon API Gateway can send proxy requests to is AWS Lambda, which is the foundation for creating arbitrary web services without managing any server infrastructure.

Because Amazon API Gateway is managed by AWS, you don't have to worry about operating and maintaining it. Using Amazon API Gateway provides improved security, reliability, and availability, which allows your developers to spend more time on core application functionality.

Figure 3 – Example of communication between services and mobile devices and computer browsers with Amazon API gateway