Developers have endured a love/hate relationship with Amazon Netflix then it yielded an extremely low-cost Content Delivery Network (CDN) – for outgoing content distribution only. And even as a web developer for large media-heavy sites you could squeeze some performance benefit from it without writing a giant check to Akamai or other CDN providers. But, it has been a thorn in the side of developers’ wishing to leverage CloudFront on top of a REST API, or as a quick-hit performance fix for slow sites.since its inception. If you are interested in mobile content delivery, download distribution, or
Why is this? Many sites simply weren’t designed (I’m not arguing what should be mind you, only what is) so that their media was served from separate sub-domains. More importantly, if your problem was slow server response time from a poorly configured web server then a CDN might appear to be a quick hit performance fix … right up until you realized that Akamai costs an arm and a leg, and Amazon CloudFront couldn’t accept POST requests. That’s right – no forms! With site search, contact forms, event registrations, or Heaven-forbid your entire site is behind a registration or pay-wall, you are stuck either redirecting all of your form actions or disabling them altogether. If you run your own tiny WordPress blog … ehem, cough, cough … then perhaps that isn’t such a big deal but if you run 30 major magazines … ehem, cough, cough … then maybe that wasn’t such a practical solution.
Well I was a few months off of my initial prediction but today I have good news! Amazon CloudFront now supports POST, PUT, DELETE, OPTIONS, and PATCH. This means you can implement your REST APIs with a standard CRUD model behind CloudFront on a single domain, or even use it as a performance stop gap that only takes a few minutes to implement! At 12 cents per GB (pricing based on US regional data transfer for first 10 TB) that’s only $120 per month per TB of data transfer!
Now don’t get overly confident (we call that cocky were I’m from) – this is not a performance solution for your slow web servers but I predict will be a major player in the CDN market moving forward. Keep an eye out on Akamai’s pricing moving forward – I am certain they will respond.
- Amazon CloudFront – Content Uploads Via POST, PUT, other HTTP Methods (aws.typepad.com)
- Amazon Announces New Features In CloudFront Targeting Commerce & Retail Customers (streamingmedia.com)
- Wowza Updates on Content Delivery Through Amazon Web Services (hispanicbusiness.com)
- Using Amazon CloudFront for Video Streaming (aws.typepad.com)