redis
特性
快
- nio
- 单线程
- 单进程
- 内存
高可用
主从复制
- 全量
- 部分
- 读写分离
sentinel
-
自动故障转移
-
原理
- 选举leader sentinel
- 架构
cluster
-
分片
- 扩缩容
- 数据迁移
-
路由
- moved
- ask
-
故障
-
发现
-
转移
-
运维
- flush恢复
-
分布式可扩展
cluster
proxy
一致性
数据结构
string
- raw
- emstr
- int
bitmaps
list
- ziplist
- linkedlist
- quicklist
set
- hashtabl
- inset
hash
- ziplist
- hashtable
zset
- ziplist
- skiplist
应用
缓存
排行
社交集合
消息队列
分布式锁
持久化
rdb
- 过程
- 优缺点
aof
-
过程
- aofbuffer
- fsync
- 重写
-
优缺点
优化
慢查询
-
阻塞
-
命令和数据结构
-
cpu
-
swap
- 复制
-
内存
- 持久化
-
网络
-
内存优化
-
内存分配
-
进程
-
数据
- 过期
-
缓冲
-
碎片
-
-
子进程内存
缓存设计
- 穿透
- 雪崩
- bigkey
- 热点key
- 过期
- 无底洞
- 缓存预热
特色功能
事务
pipeline
bloomfilter
hyperloglog
pubsub
geo
对比
ehcache
memcache
XMind - Trial Version