600字范文,内容丰富有趣,生活中的好帮手!
600字范文 > 新浪微博杨卫华 PHP 构建高性能的微博系统——再谈新浪微博架构_杨卫华.pdf

新浪微博杨卫华 PHP 构建高性能的微博系统——再谈新浪微博架构_杨卫华.pdf

时间:2023-03-04 00:55:01

相关推荐

新浪微博杨卫华 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

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。