AWS Lambda và Amazon API Gateway: kiến trúc serverless hướng sự kiệnAWS Lambda and Amazon API Gateway: event-driven serverless architecture
Nhiều tác vụ của MFTECH chỉ cần chạy khi phát sinh sự kiện. Bài học trình bày các luồng xử lý hướng sự kiện (ảnh mới, dữ liệu stream, tác vụ định kỳ), các lỗi thường gặp khi vận hành Lambda trong môi trường production (VPC, cold start, quota, phân quyền), và cách cung cấp API cho ứng dụng và đối tác bằng API Gateway.Many MFTECH tasks only need to run when an event occurs. This lesson covers event-driven processing flows (new images, stream data, periodic tasks), common mistakes when running Lambda in production (VPC, cold starts, quotas, permissions), and how to provide APIs to applications and partners with API Gateway.
- Mức độ
- Quan trọng Được sử dụng phổ biến trong nhiều mẫu kiến trúc
- Kiến thức tiên quyết
- IAM + OrganizationsVPC + VPN + Direct Connect + Transit Gateway
- Thời lượng
- ~27 phút, 4 phần học có mô phỏng
Nhiều tác vụ của MFTECH chỉ chạy khi phát sinh sự kiện: ảnh mới, đơn hàng mới, đến lịch dọn dữ liệu. Thay vì duy trì EC2 instance chạy liên tục cả ngày, Lambda thực thi đúng thời điểm có sự kiện, và API Gateway cung cấp API cho ứng dụng gọi tới.
Many MFTECH tasks run only when an event occurs: a new image, a new order, a scheduled data cleanup. Instead of keeping an EC2 instance running all day, Lambda runs exactly when an event arrives, and API Gateway provides APIs for applications to call.
Các phần của bài học
Kiến thức
4 phần học, đọc theo thứ tự- Phần 1/4Part 1/4 · 2 phút Đã đọc ✓ Đang đọc Kiến trúc hướng sự kiện với AWS LambdaEvent-driven architectures with AWS Lambda
- Phần 2/4Part 2/4 · 5 phút Đã đọc ✓ Đang đọc Vận hành Lambda function trong môi trường productionRunning Lambda functions in production
- Phần 3/4Part 3/4 · 10 phút Đã đọc ✓ Đang đọc Cấu hình memory, ephemeral storage, timeout và đóng gói functionConfiguring memory, ephemeral storage, timeout and function packaging
- Phần 4/4Part 4/4 · 9 phút Đã đọc ✓ Đang đọc Amazon API Gateway cho ứng dụng và đối tácAmazon API Gateway for applications and partners
Bài kiểm tra
tự đánh giá trước khi sang bài sauCác bài tiếp theo trong lộ trình học
Bài học tiếp theo
Tài liệu AWS
Xem thêm 25 tài liệu
- Choosing between REST APIs and HTTP APIs
- Usage plans and API keys
- Error handling for asynchronous invocation (Lambda)
- Use Amazon Cognito user pools as authorizer for a REST API
- Cache settings for REST APIs
- IAM database authentication (RDS)
- What is Amazon Managed Service for Apache Flink?
- Configure Lambda function memory
- Configure ephemeral storage for Lambda functions
- Configure Lambda function timeout
- Managing Lambda dependencies with layers
- Create a Lambda function using a container image
- Understanding the Lambda execution environment lifecycle
- Best practices for working with AWS Lambda functions
- AWS Lambda pricing
- Tutorial: Create a REST API as an Amazon Kinesis proxy
- Control access to a REST API with API Gateway resource policies
- Private REST APIs in API Gateway
- Use API Gateway Lambda authorizers
- Control access to HTTP APIs with JWT authorizers
- Create a Lambda REQUEST authorizer function (WebSocket APIs)
- Lambda deployment packages (.zip and container images)
- Configuring Amazon EFS file system access for Lambda
- API Gateway resource policy examples
- Access an AWS service using an interface VPC endpoint
Xem thêm 25 tài liệu
- Choosing between REST APIs and HTTP APIs
- Usage plans and API keys
- Error handling for asynchronous invocation (Lambda)
- Use Amazon Cognito user pools as authorizer for a REST API
- Cache settings for REST APIs
- IAM database authentication (RDS)
- What is Amazon Managed Service for Apache Flink?
- Configure Lambda function memory
- Configure ephemeral storage for Lambda functions
- Configure Lambda function timeout
- Managing Lambda dependencies with layers
- Create a Lambda function using a container image
- Understanding the Lambda execution environment lifecycle
- Best practices for working with AWS Lambda functions
- AWS Lambda pricing
- Tutorial: Create a REST API as an Amazon Kinesis proxy
- Control access to a REST API with API Gateway resource policies
- Private REST APIs in API Gateway
- Use API Gateway Lambda authorizers
- Control access to HTTP APIs with JWT authorizers
- Create a Lambda REQUEST authorizer function (WebSocket APIs)
- Lambda deployment packages (.zip and container images)
- Configuring Amazon EFS file system access for Lambda
- API Gateway resource policy examples
- Access an AWS service using an interface VPC endpoint