|Martin Streicher, Software Developer||
Topic: Cloud asset management, storage integration, workload balancing
Environment/software: CloudFront, Ruby, Ruby on Rails, EC2, Amazon S3
Level/type: Intermediate/overview and technical
As an alternative to purchasing more bandwidth or physical resources to cope with growing use of your popular Web site, the author proposes integrating your site with the Amazon S3 storage/CloudFront content-delivery system.
Amazon CloudFront is a Web service for content delivery that can offer up your static and streaming content using a global network of edge locations. Requests for your objects are automatically routed to the nearest edge location. You pay only for the content the system delivers.
The author starts with an overview of how the Amazon S3/CloudFront system works, then introduces a simple Ruby on Rails photo management application to use to demonstrate how to distribute the assets of your application to the EC2-hosted system. He offers instruction on creating a CloudFront distribution (the mechanism that connects your files and resources to the CloudFront system). He then explains how to perform the two ways to make sure the CloudFront-cached assets the system is serving up are fresh -- by setting your own expiration date on assets or by applying a new name to renewed and new assets on a scheduled basis.
- Pay for only the bandwidth you need.
- Understand how to integrate a Ruby on Rails app into a cloud system.
- Original article.
- Martin Streicher explains Rails v3 in "All aboard! An introduction to Rails 3."
- The author also lets you in on some SSH secrets (SSH is an entry point for many cloud systems) in "Speaking UNIX: The best-kept secrets of UNIX power users."