Phân biệt nhanh: các dịch vụ và tính năng thường bị nhầm với load balancer
Nhiều dịch vụ và tính năng có vẻ cũng làm nhiệm vụ chia tải; phân biệt được chúng giúp chọn đúng thành phần cho từng yêu cầu.
Một số dịch vụ và tính năng thường được cân nhắc cùng load balancer nhưng giải quyết vấn đề khác. Chọn từng mục để xem phạm vi sử dụng và phương án phù hợp với tình huống của MFTECH.
Đếm request theo IP nguồn (mặc định) hoặc theo khoá khác (header, query argument, method…) trong evaluation window 1, 2, 5 hoặc 10 phút (mặc định 5 phút); khi vượt ngưỡng (tối thiểu 10), áp dụng action như Block cho các request tiếp theo. Web ACL được liên kết với ALB, CloudFront, API Gateway.
Vì sao không chọn trong tình huống nàyKhông phân biệt được từng khách hàng của API theo API key và không có quota theo tháng cho từng đối tác.
Phương án phù hợpMột IP gửi 100 request mỗi giây vào website sau ALB: rate-based rule trên web ACL của ALB. Giới hạn và quota riêng cho từng đối tác dùng API: API Gateway usage plan.
Quick comparison: services and features often confused with a load balancer
Several services and features seem to share the job of spreading load; telling them apart helps you choose the right one for each requirement.
Some services and features are often considered together with a load balancer but solve a different problem. Pick each item to see what it is for and what fits MFTECH’s situation.
Counts requests by source IP (the default) or by another key (header, query argument, method…) over an evaluation window of 1, 2, 5 or 10 minutes (5 minutes by default); above the limit (minimum 10) it applies an action such as Block to further requests. The web ACL is associated with an ALB, CloudFront or API Gateway.
Vì sao không chọn trong tình huống nàyIt cannot tell API customers apart by API key and has no monthly quota per partner.
Phương án phù hợpOne IP sends 100 requests per second to the website behind the ALB: a rate-based rule on the ALB's web ACL. Separate limits and quotas for each API partner: an API Gateway usage plan.