• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
料理を楽しくする画像配信システム
 

料理を楽しくする画像配信システム

on

  • 27,022 views

「料理を楽しくする画像配信システム」...

「料理を楽しくする画像配信システム」
クックパッド株式会社 成田 一生(@mirakui)

2011/5/25 クックパッドxサイバーエージェント合同勉強会(#amepad)で発表しました。

Statistics

Views

Total Views
27,022
Views on SlideShare
20,161
Embed Views
6,861

Actions

Likes
56
Downloads
115
Comments
0

25 Embeds 6,861

http://d.hatena.ne.jp 3035
http://techlife.cookpad.com 2337
http://blog.mirakui.com 1055
http://q.hatena.ne.jp 184
https://twitter.com 83
http://slide.yoshiday.net 63
url_unknown 17
http://higehiki.com 13
http://www.slideshare.net 12
http://webcache.googleusercontent.com 11
https://si0.twimg.com 9
http://cookpadtech.wordpress.com 6
http://infra.rrdtool.net 6
http://a0.twimg.com 5
http://twitter.com 5
https://www.chatwork.com 4
http://paper.li 4
http://mym.corp.yahoo.co.jp 3
http://54.248.239.72 2
http://freerss.net 2
https://twimg0-a.akamaihd.net 1
http://yk55.com 1
http://localhost 1
http://cache.yahoofs.jp 1
http://us-w1.rockmelt.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

料理を楽しくする画像配信システム 料理を楽しくする画像配信システム Presentation Transcript

  • @mirakui
  • BEFORE TOFU app app app apache apache
  • 800 …
  • 800 …
  • 8007,000 /sec
  • IDC→EC2
  • BEFORE TOFU app app app NFS apache apache
  • BEFORE TOFU app app app NFS apache apache
  • BEFORE TOFU app app app NFS apache apache
  • BEFORE TOFU app app app NFS apache apache
  • NFS
  • S3
  • 99.999999999%
  • TOFU
  • BEFORE TOFU app app app apache apache
  • AFTER TOFU app app app TOFU apache
  • http://d3921.image.cookpad.com/recipes/ 1237075/100x141c/0b9c3ad1cba65869058e17cf78988bcb.jpg
  • http://d3921.image.cookpad.com/recipes/ 1237075/100x141c/ 0b9c3ad1cba65869058e17cf78988bcb.jpg
  • IDhttp://d3921.image.cookpad.com/recipes/ 1237075/100x141c/0b9c3ad1cba65869058e17cf78988bcb.jpg
  • http://d3921.image.cookpad.com/recipes/ 1237075/100x141c/0b9c3ad1cba65869058e17cf78988bcb.jpg
  • ‘100’‘100x100’‘100x100c’‘100x100c40_198_137_104_300’
  • ‘100x100cq10’‘100x100cq30’‘100x100cq50’‘100x100cq70’‘100x100cq90’
  • http://d3921.image.cookpad.com/recipes/ 1237075/100x141c/0b9c3ad1cba65869058e17cf7 8988bcb.jpg
  • DEMO
  • Apache module (mod_tofu.so) ImageMagick(Wand) Amazon S3
  • <Location /> SetHandler tofu AWSAccessKeyId AKIXXXXX AWSSecretAccessKey XXXXXXXXXXX AWSS3BucketName my-tofu-bucket </Location> s3://my-tofu-bucket/recipes/1234/1234.jpghttp://[host]/recipes/1234/[size]/[hash].jpg
  • 3
  • TOFU
  • akamai (cdn) ELB ec2 c1.xlargeApache Apache Apache(mod_tofu) (mod_tofu) … (mod_tofu) x6 S3
  • ImageMagick OR Imlib2
  • ImageMagick or Imlib2 Imlib2Imlib2 ImageMagick
  • ImageMagick
  • ImageMagick ImageMagick
  • EC2
  • TOFU
  • akamai (cdn) ELBApache Apache Apache(mod_tofu) (mod_tofu) … (mod_tofu) S3
  • instance cores memory pricem1.large 2 7.5gb 23,904/m1.xlarge 4 15gb 47,808/c1.xlarge 8 7gb 47,808/m2.xlarge 2 17.1gb 35,868/m2.2xlarge 4 34.2gb 71,712/m2.4xlarge 8 68.48gb 142,826/ $1=83yen, tokyo region
  • c1.xlarge8 cores / 20 ECUscore c1.xlargetofu CPU
  • S3
  • S3
  • 2011.4.12s3::ListAllBuckets→ …
  • S3
  • Akamai
  • akamai (cdn) ELBApache Apache Apache(mod_tofu) (mod_tofu) … (mod_tofu) x6 S3
  • Akamai CDN(Contents Delivery Network) 80% 1hop SLA100%
  • AkamaiORCloudFront
  • CloudFrontAWS CDNS3 EC2Akamai(Custom Origin )
  • Akamai CloudFront 5037.5 2512.5 0 ping (msec) ※ just-ping.com
  • Akamai
  • Akamai
  • akamai (cdn) hit90% ELBApache Apache Apache(mod_tofu) (mod_tofu) … (mod_tofu) S3
  • akamai (cdn) hit90% ELB 24 CACHE(?) hit60%Apache Apache Apache(mod_tofu) (mod_tofu) … (mod_tofu) S3
  • akamai (cdn) ELB Varnish VarnishApache Apache Apache(mod_tofu) (mod_tofu) … (mod_tofu) S3
  • instance cores memory pricem1.large 2 7.5gb 23,904/m1.xlarge 4 15gb 47,808/c1.xlarge 8 7gb 47,808/m2.xlarge 2 17.1gb 35,868/m2.2xlarge 4 34.2gb 71,712/m2.4xlarge 8 68.48gb 142,826/ ……
  • akamai (cdn) ELB tofu Varnish VarnishApache Apache ApacheApache ApacheApache(mod_tofu) (mod_tofu) … (mod_tofu) (mod_tofu) (mod_tofu) (mod_tofu) S3
  • TOFU UP →