读可扩展web架构ppt的笔记

读可扩展web架构ppt的笔记 http://www.davidtan.org/secrets-of-flickr-scaling-architecture/
 
what is web scalability?
1/ traffic grows
2/dataset grows
3/maitainability
 
application architecture goals
1. scalability  可扩展
2. HA (high availability) and BCP  bussiness continucity planning 高可用性和业务的持续发展规划
3. Performance 高性能
 
扩展的方式
1、vertical (get bigger)
2. horizontal (get more)
 
tradeoff the good/fast/cheap
 
Load Balancing (LB)
1/ hardware LB
2/ software LB
 
Queueing
利用Queueing 技术做异步系统
 
Caching
1、cache not need to scale
2. Simple stuff
       a mod_perl or share memory(共享内存)
       b Mysql query cache (most cases are bad)
 
Cache的写法: 1)write through直写cache  app-->cache-->DB
                     2) write back   app->cache  cache再定期的刷新db
                     3)slideline(双写cache)app同时更新cache 和db
 
  SPOF (single point of failure)
 单点失败
Master ---master 
hot/warn or hot/hot
 
反向代理 reverse proxy
L7层的 load balance and squid
mod_proxy & mod_cache for apache
perball and memcache http://www.danga.com

你可能感兴趣的:(扩展,web,cache,scalability,caching,performance)