原文刊載於 EngineYard

1) Cache, cache, cache and more cache.
能 Cache 的盡量 cache,不論是 Client Caching 或者是 Server-side Caching。

2) Segregate data and data serving
別為了方便就只用一個 DB 硬撐。把靜態檔案能扔上 CDN (S3, Akamai ...)的就扔。一些特定的簡單 model 可以考慮拆開用 key-value 的 data store 作...

3) Minimize & handle external dependencies
降低對於 external sites 的 dependencies, 例如抓外界 RSS 這件事,因為太不可預期了....

4) Tend your database and your job handlers
檢視 SQL Query 與 背景工作所消耗的資源量...

5) Shard your unavoidably relational data

對 DB 作 Sharding 。
arrow
arrow
    全站熱搜

    xdite 發表在 痞客邦 留言(0) 人氣()