redis 集群之间是使用什么网络协议连接的?

谷歌说是 gossip 协议
图片.png

但是 chatGPT 说是 Redis Cluster Bus 协议

图片.png

阅读 1.6k
2 个回答

Redis Cluster Bus是统称,节点之间通过TCP进行连接,节点之间的通信是通过gossip协议

下面摘自官方文档

To perform their tasks all the cluster nodes are connected using a TCP bus and a binary protocol, called the Redis Cluster Bus. Every node is connected to every other node in the cluster using the cluster bus. Nodes use a gossip protocol to propagate information about the cluster in order to discover new nodes, to send ping packets to make sure all the other nodes are working properly, and to send cluster messages needed to signal specific conditions
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题