Thursday 20 August 2015

Automate Cloudfront Cache Invalidation Using AWS .NET Toolkit

Amazon CloudFront is a content delivery web service to give developers and businesses an easy way to distribute content to end users with low latency and high data transfer speeds.

Amazon Cludfront has a number of edge locations worldwide, when your application target audience is scattered worldwide then Amazon Cloudfront is a good choice for caching your files and contents to give high throughput and low latency. Let say, if someone is accessing your application from east zone of USA then your contents will be delivered by one of the cloudfront edge servers located in USEast.

Your files which got cached on cloudfront edge locations will be automatically invalidated as per the default Cache Timeout set in request header. But sometimes you may forcefully want to clear files from Cloudfront cache prior to the actual Cache Timeout.