Amazon API Gateway is an AWS service for creating, publishing, maintaining, monitoring, and securing REST, HTTP, and WebSocket APIs at any scale. API developers can create APIs that access AWS or other web services, as well as data stored in the AWS Cloud. As an API gateway API developer, you can create APIs for use in your own client applications. Alternatively, you can provide your API to a third-party application developer.
The architecture image of the API gateway is as follows:
Amazon API Gateway
Products:The hyperlink login is visible. Documentation:The hyperlink login is visible.
AWS released the first version of API Gateway in 2015 with support for REST APIs. Over the next few years, AWS added a number of features to its REST API support.
In 2019, AWS released HTTP API, a new version of API Gateway. It focuses on providing enhanced functionality, improved performance, and an easier developer experience for customers built with API Gateway.
Performance and price differences
The main difference between REST API and HTTP API is performance and price. In a nutshellHTTP API wins in both areas。
Both the REST API and the HTTP API only charge for the actual number of requests made and the data that leaves AWS. However, the price varies greatly. The REST API charges $3.50 per million requests, plus the cost of outgoing data. In comparison, the HTTP API charges only $1.00 per request for the first 1 million requests and $0.90 per million requests thereafter. The price difference is as high as 71%.
The prices of REST API and HTTP API in the same region are as follows:
In addition, AWS says that the performance of the HTTP API is significantly improved over the REST API version. The HTTP API was found to have a 14% to 16% lower latency than the REST API.
Functional differences
REST APIs and HTTP APIs differ in the following ways:
- Endpoint type
- Security
- Authorization
- API management
- Development
- Monitoring
- Integrations
View in detail:The hyperlink login is visible.
|