1. Scaling a Web Service
BarCamp HK 2007
Leon Ho, Stepcase Limited
2. Objective
• Sustaining the scale of the traffic
• Zero downtime
• High performance
• Squeezing every juice from the server
3. Why?
• Stepcase Lifehack (http://www.lifehack.org):
• 1 million visits per month
• 2 million pageviews per month
• Those does not include images,
javascript, stylesheets
• We’ve done 5400 new connections per
min
13. Static Files
• Moves out to a separate server
• Consider Amazon S3
• Image - Decrease the number of images
you need to load
• CSS Spites
• Use Firebug to benchmark
14. Amazon S3
• We moved our static images to S3
• files.lifehack.org CNAME
s3.amazonaws.com
• use cronjob and s3sync to keep them in
sync
• next, move js, css, and post images out