- 3
- 0
- 约8.3千字
- 约 65页
- 2017-08-21 发布于河北
- 举报
互联网公司技术架构资料.新浪微博.构建高性能的微博系统.pdf
Build High Performance
Weibo System
@TimYang
•
• 140
•
•
• QCon 2010
• WDC 2010
Agenda
3 4
2 1
Part 1
()
MySQL
•
•
• hash
•
• user_timeline index
•
•
•
• 5
•
MySQL + cache
•
•
• cache
•
•
NoSQL
“Databases are specializing – the “one
size fits all” approach no longer applies.”
MongoDB
NoSQL?
•
• Redis
• MongoDB
•
• Cassandra
• HBase
• MongoDB
• Redis
• HBase
• Cassandra
Redis -
•
• snapshot -
• vm -
• diskstore -
• aof -
Redis -
• string: key value redisObject 16 bytes/item
• list: 40 bytes / item
• hash: zipmap(64)
• set/sorted set
Redis - Replication
• rdb
•
Redis -
Redis -
•
• failover
• list/set(optional)
原创力文档

文档评论(0)