Service ◦ Extreme durability. ◦ Multiple copies in selected region. ▪ vs EBS : Multiple copies in single available zone. • CF : CloudFront ◦ Content Delivery Network(CDN) service. ◦ Distribute from origin to AWS Edge Network ▪ http://aws.amazon.com/cloudfront/#details ▪ About 30 edges in global. (only in Earth, lol)
global market in mobile application era. • We need redundant, fast and reasonable price content delivery service aims globally. • We have not enough human resource to maintain various system.
just use Cyberduck or other GUI tool. ◦ Or, you have to use s3fs or s3cmd. ◦ If you need sync or invalidation, use s3cmd. ◦ We have ~30,000 files. Thus, s3cmd. ◦ We chose Tokyo bucket for faster uploading. • s3cmd ◦ Awesome! ◦ Works on S3 and CloudFront.
◦ (!) Over 15MB files, using only filesize. ◦ Our 30,000 files, 60GB = 8 min to dry-run. ( env : i7 2500K + SATA HDD to bucket in tokyo ) • s3cmd sync --cf-invalidate ◦ Call invalidation API automatically. ◦ (!) Simultaneous invalidation is up to 3. ◦ (!) Free for ~1,000 files per month. ◦ Check it up by s3cmd cfinvalinfo How it works? (cont.)
Bill for CloudFront Based on Total traffic • 10TB/month • $0.209/GB = $2,090* Bill for Domestic CDN Based on Peak traffic • 350Mbps/@peak • $6.00/Mbps = $2,100
dedicated option for each platform. ◦ Storage is cheaper than transfer fee! • Static ◦ Do not deploy volatile objects to CloudFront. ◦ Invalidation needs ~10min, often. ◦ We're still using Nginx for them. • Streamable ◦ Mobile networks are still slow. ◦ Do not make users to wait until finishing download. Tips