服务 · 联网和内容分发
Amazon API Gateway
Creates, publishes and secures APIs: the front door that apps use to reach your backend code and data.
本课尚未翻译,暂以英文显示。
- 1A web or mobile app calls the API over HTTPS.
- 2API Gateway checks the caller and the request rate, then passes the request to a Lambda function.
- 3The function runs the business logic and reads or writes data in Amazon DynamoDB.
分步说明
- 1A web or mobile app calls the API over HTTPS.
- 2API Gateway checks the caller and the request rate, then passes the request to a Lambda function.
- 3The function runs the business logic and reads or writes data in Amazon DynamoDB.
API Gateway sits between the app and the code and data behind it. The backend can also be an application on EC2.
是什么
An API (application programming interface) is how one program asks another for data or for an action. Amazon API Gateway is a fully managed service for creating, publishing, maintaining, monitoring and securing APIs at any scale. It supports REST, HTTP and WebSocket APIs.
API Gateway acts as a front door. A web or mobile app sends its requests to API Gateway, which passes them to the backend: AWS Lambda functions, applications on Amazon EC2 or any other web application. On the way, it checks who is calling, limits how many requests each caller can send, and records what happened.
是什么
Together with AWS Lambda, API Gateway is a common way to build a serverless backend. There are no servers to manage and no minimum fees. You pay for the API calls you receive and the data transferred out.
要记住
- A managed front door for APIs.
- Supports REST, HTTP and WebSocket APIs.
- Checks callers with IAM, Amazon Cognito or a Lambda function, and can use AWS WAF.
- Throttling limits requests, so traffic spikes do not overwhelm the backend.
- Pay per API call, with no minimum fees.
考试中
- “Create, publish, monitor and secure APIs at any scale” points to Amazon API Gateway.
- “A serverless backend for a mobile app” usually means API Gateway in front of AWS Lambda.
- API Gateway manages API calls. Spreading traffic across EC2 instances is Elastic Load Balancing.