redis的发布订阅

是什么:进程间的一种消息通信模式:发送者(pub)发送消息,订阅者(sub)接收消息。

Redis 客户端可以订阅任意数量的频道。

下图展示了频道 channel1 , 以及订阅这个频道的三个客户端 —— client2 、 client5 和 client1 之间的关系:

 

 

 https://www.runoob.com/redis/redis-pub-sub.html

posted @ 2021-10-14 09:10  贱贱的小帅哥  阅读(17)  评论(0编辑  收藏  举报