ADVCOST02-BP02 Use compression to reduce network traffic and storage costs
Using compression can reduce the amount of data transferred thus reducing network and storage costs.
Implementation guidance
-
Use GZIP compression before transferring data to Amazon S3
to reduce traffic between Availability Zones and Regions, as well as traffic to the internet. -
Use snappy compression for Amazon Kinesis
Data Streams to reduce the amount of data stored and transferred. -
Implement HTTP/2 for Application Load Balancers
, Amazon API Gateway compression, and Amazon Managed Streaming for Apache Kafka (Amazon MSK) . -
For databases, consider the following compression techniques to reduce storage costs:
-
Column-level compression
-
Table-level compression
-
Backup compression
-
Query result compression
-
Index compression
-
-
Implement replication compression to reduce data transfer costs.
-
Monitor the impact of compression on CPU utilization, and verify that the increased CPU costs do not exceed the network transfer costs saved.