Skip to content

Commit 8929647

Browse files
committed
增加一致性哈希
1 parent cfd1910 commit 8929647

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

PHP-Interview-QA.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,17 @@
252252
253253
## 4.一致性哈希
254254

255+
> 在使用 Redis 时,为了保证高可用,提高读写性能,常常会使用主从方式或者集群方式
256+
257+
> 使用 Hash 算法支持集群动态扩容,哈希环
258+
259+
> 使用虚拟节点避免哈希环的数据倾斜问题
260+
255261
## 5.分布式锁
256262

257263
## 参考资料
258264
- [跳跃表](https://redisbook.readthedocs.io/en/latest/internal-datastruct/skiplist.html)
265+
- [什么是一致性Hash算法](https://zhuanlan.zhihu.com/p/34985026)
259266

260267
# Web
261268

0 commit comments

Comments
 (0)