Best Practices for Integrating CFCs with Fusebox

Download Report

Transcript Best Practices for Integrating CFCs with Fusebox

Reduce bandwidth and
save money with
Amazon's S3
Adam Howitt
www.adamhowitt.com
[email protected]
November 1, 2007
www.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
November 1, 2007
www.adamhowitt.com
CF Hosting
•
•
•
•
ColdFusion, SQL Server, IIS
Good price, good service
Shared hosting, shared failures
No control
November 1, 2007
www.adamhowitt.com
Self Hosted Hardware
•
•
•
•
•
BlueDragon, MySQL, Apache, Postfix
4 x P3s
Static IP address
WRT54g router
Large closet
November 1, 2007
www.adamhowitt.com
Self Hosting Practically
Speaking
•
•
•
•
•
•
•
Cheap
Many domains
Full control
Vacuum cleaners
Hairdryers
Whining fans
Closet space
November 1, 2007
www.adamhowitt.com
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”
November 1, 2007
www.adamhowitt.com
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
November 1, 2007
www.adamhowitt.com
Amazon S3 Overview
•
•
•
•
•
REST based service
Access Control Lists
Upload static content
Encrypted uploads
Content delivery network
November 1, 2007
www.adamhowitt.com
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
November 1, 2007
www.adamhowitt.com
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/Ama
zon-S3-REST-Wrapper
– getBuckets()
– getBucket(), putBucket() and deleteBucket()
– getObject(), putObject() and deleteObject()
November 1, 2007
www.adamhowitt.com
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
November 1, 2007
www.adamhowitt.com
Results
• Load test - 10x faster than my own server
• Bandwidth reduced on my network to 33%
(178k > 66k) per page
• Pricing
November 1, 2007
www.adamhowitt.com
Ideas for the Service
•
•
•
•
Movies
Podcasts
Offsite Backups
All your static files
November 1, 2007
www.adamhowitt.com
Questions
•
•
•
•
•
•
Adam Howitt
(312) 714 9229
[email protected]
http://www.webdevref.com/blog
http://www.walkjogrun.net
http://www.adamhowitt.com
November 1, 2007
www.adamhowitt.com