2009年10月17日 星期六

[Scale] Scale Frontend 應該注意的五件事

[Scale] Scale Frontend 應該注意的五件事
Rails in the Wild: 5 Client-Side Performance Observations

1. It’s easy to forget to compress your JavaScript and CSS

要記得 :cache => true
要記得壓 js 和 css

2. Watch out for slow third party services

都是慢在第三方
google ads, analytics 也會托慢, 請用 postload_google_ads


3. Using multiple image hosts doesn’t always mean higher performance

拆那麼多台未必會比較快

4. S3 is NOT a Webserver!

S3 是 storage ,不是 web server。所以不要一股腦的把東西往上丟,要注意有沒有敏感資訊,而且 s3p 是沒有幫忙做 gzip 的。

5. Most performance variability is NOT attributable to page factors

速度慢通常是慢在後端..

沒有留言: