Các luồng dữ liệu phát sinh chi phí data transfer
AWS tính phí không chỉ cho compute và storage mà cả cho dữ liệu di chuyển giữa các AZ, các Region và ra internet; luồng dữ liệu thiết kế chưa hợp lý có thể làm chi phí tăng đáng kể.
Chi phí AWS của MFTECH tăng thường không do đơn giá dịch vụ mà do luồng dữ liệu được thiết kế chưa phù hợp. Dưới đây là ba tình huống thường phát sinh chi phí. Chọn một tình huống và so sánh các phương án.
- Read Replica trong cùng Region không tính phí replication; Read Replica khác Region thì có.
- EC2 instance trong private subnet đọc ghi S3 cùng Region: sử dụng S3 gateway endpoint thay cho NAT gateway.
- Lưu lượng lớn nên được giữ trong AWS, chỉ phần dữ liệu nhỏ được truyền ra ngoài.
- Dữ liệu truyền ra qua Direct Connect được tính theo đơn giá Direct Connect data transfer, thấp hơn đơn giá data transfer out qua internet.
Data flows that incur data transfer charges
AWS charges not only for compute and storage but also for data moving between AZs, between Regions and out to the internet; a poorly planned data flow can raise costs considerably.
When MFTECH’s AWS bill grows, the cause is often not the unit price of a service but data flows that were not designed well. Below are three scenarios that commonly incur charges. Choose a scenario and compare the options.
- A Read Replica in the same Region has no replication charge; a Read Replica in another Region does.
- EC2 instances in a private subnet reading and writing S3 in the same Region: use an S3 gateway endpoint instead of a NAT gateway.
- Keep large traffic volumes inside AWS and send only the small amount of data out.
- Data sent out over Direct Connect is charged at the reduced Direct Connect data transfer rate, lower than internet data transfer out rates.