Terminate Gzip compression at AWS ELB classic load balancer

amazon-elbgzipload balancing

We have a set of servers in AWS that are behind an ELB. We are trying to upload data to the server. We want to enable gzip, but the servers themselves use an obscure golang framework that does not have default gzip support to uncompress incoming requests.

Is it possible to terminate gzip at a load balancer, and send uncompressed content to the servers behind them?

That way our clients can send gzipped data, and we don't have to modify the server code.

Best Answer

No, AWS load balancers do not support compressing or decompressing data streams.

However, CloudFront does. Adding CloudFront in front of your load balancer improves performance and security.

Here is a link regarding CloudFront and Gzip:

Gzip Compression Support for Amazon CloudFront