What is Redis?
What is
sponsored by:
• 全名 REmote DIctionary Server
• Redis is an open source, advanced key-value store. It is often
referred to as a data structure server since keys can
contain strings, hashes, lists, sets and sorted sets.
• key value store? cache? memory database? data structure
server?
优点
• FAST both read and write
• data can dump to disk
• master-slave
• many useful data structure
• Active community/ Antirez
集群架构(三)
Sharding 数据分片
应用层
sharding
R/ R/ R/
W W W
master1 master2 master3
slave1 slave2 slave3
备份 备份 备份
集群架构(四)
•All nodes are directly connected with a
service channel.
•TCP baseport+4000, example 6379 ->
10379.
•Node to Node protocol is binary,optimized
for bandwidth and speed.
•Clients talk to nodes as usually, using ascii
protocol, with minor additions.
•Nodes don't proxy queries.