新浪微博杨卫华 PHP,构建高性能的微博系统——再谈新浪微博架构_杨卫华.pdf
Build High Performance
Weibo Platform
@TimYang
Background
? Weibo introduction
? 140 Chinese characters
? With photo/video/comments/repost
chain
Agenda
3 4
2 1
Part 1
()
MySQL
?
?
MySQL
? id hash
?
? user_timeline index
MySQL
?
?
?
? 5
MySQL + cache
?
?
?
NoSQL?
?
? Redis
? MongoDB
?
? Cassandra
? HBase
? MongoDB
? Redis
? HBase
? Cassandra
Redis
? snapshot/vm/cache disk/aof
? string/hash/list
? Replication
?
?
?
? list/set(optional)
Data Structure
?
? RDBMS => JSON key value => binary
? DB
? JSON/XML
? Binary
JSON
? DB
? Cache
? Message Queue
? API
Binary Data Structure
? Numeric: varint, from 1 byte
?
? Java, C++, Python...
?
Data Structure
Case Study
?
總結(jié)
以上是生活随笔為你收集整理的新浪微博杨卫华 PHP,构建高性能的微博系统——再谈新浪微博架构_杨卫华.pdf的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: php html_entity_deco
- 下一篇: sqlite+php+函数大全,PHP