140 likes | 386 Views
Reduce bandwidth and save money with Amazon's S3. Adam Howitt www.adamhowitt.com adam@adamhowitt.com. About Adam Howitt. Over 7 years ColdFusion 1 ½ years at MacKay & Company… 3 years at Biolab in Atlanta 3 years at Duo Consulting in Chicago Independent Consultant for 1 month
E N D
Reduce bandwidth and save money with Amazon's S3 Adam Howitt www.adamhowitt.com adam@adamhowitt.com
About Adam Howitt • Over 7 years ColdFusion • 1 ½ years at MacKay & Company… • 3 years at Biolab in Atlanta • 3 years at Duo Consulting in Chicago • Independent Consultant for 1 month • Load testing – www.poundmyserver.com • Google Analytics, SEO and Optimizer • Google Maps • http://www.walkjogrun.net
CF Hosting • ColdFusion, SQL Server, IIS • Good price, good service • Shared hosting, shared failures • No control
Self Hosted Hardware • BlueDragon, MySQL, Apache, Postfix • 4 x P3s • Static IP address • WRT54g router • Large closet
Self Hosting Practically Speaking • Cheap • Many domains • Full control • Vacuum cleaners • Hairdryers • Whining fans • Closet space
Why is the Internet Slow? • “If you have a problem, • if no one else can help, and • if you can find them, • maybe you can hire... The A-Team”
Overview of Amazon Web Services • E-commerce Service (ECS) • Elastic Compute Cloud (EC2) • Flexible Payments (FPS) • Mechanical Turk • Simple Storage Service (S3) • Simple Queue Service (SQS) • Alexa Site Thumbnail • Alexa Top Sites
Amazon S3 Overview • REST based service • Access Control Lists • Upload static content • Encrypted uploads • Content delivery network
Amazon S3 Pricing • Storage$0.15 per GB-Month of storage used • Data Transfer$0.10 per GB - all data transfer in $0.18 per GB - first 10 TB / month data transfer out$0.16 per GB - next 40 TB / month data transfer out$0.13 per GB - data transfer out / month over 50 TB • Requests$0.01 per 1,000 PUT or LIST requests$0.01 per 10,000 GET and all other requests
Uploading to S3 • Browser plugin - S3fox • https://addons.mozilla.org/en-US/firefox/addon/3247 • ColdFusion S3.cfc • http://www.ajaxcf.com/blog/index.cfm/2006/9/7/Amazon-S3-REST-Wrapper • getBuckets() • getBucket(), putBucket() and deleteBucket() • getObject(), putObject() and deleteObject()
Incorporating S3 to WalkJogRun.net • User creates a route • Overview is saved to a database • Old System • Waypoint XML files saved to file system • XML Files loaded with AJAX • New System • Waypoint XML files sent to S3 • XML Files loaded from S3 with an AJAX proxy • Nothing is saved locally
Results • Load test - 10x faster than my own server • Bandwidth reduced on my network to 33% (178k > 66k) per page • Pricing
Ideas for the Service • Movies • Podcasts • Offsite Backups • All your static files
Questions • Adam Howitt • (312) 714 9229 • adam@adamhowitt.com • http://www.webdevref.com/blog • http://www.walkjogrun.net • http://www.adamhowitt.com