当前位置:网站首页>[redis] publish and subscribe
[redis] publish and subscribe
2022-06-22 21:09:00 【fate _ zore】
Publish and subscribe
What is publish and subscribe
Redis Publish subscribe (pub/sub) It's a message communication mode : sender (pub) Send a message , subscriber (sub) receive messages .
Redis Clients can subscribe to any number of channels .
Redis Publish and subscribe to
The client can subscribe to channels, as shown in the figure below

When you post a message to this channel , The message is sent to the subscribing client

Publish and subscribe command line implementation
- Open a client subscription channel1

- command :
SUBSCRIBE channel1 - Open another client , to channel1 Release the news

- command :
publish channel1 hello 
边栏推荐
- [redis]Redis6的事务操作
- SwiftUI如何模拟视图发光增大的动画效果
- [20. valid brackets]
- Baijia forum in the 13th year of Yongzheng (lower part)
- 启牛送的券商账户是安全的吗?启牛提供的券商账户是真的?
- Apple Objective-C source code
- [the penultimate node in the linked list]
- Pytorch's model saving, loading and continuing training
- 底部菜单添加的链接无法跳转到二级页面的问题
- Visualization of wine datasets in R language
猜你喜欢
随机推荐
88-被广为流传的参数优化, 是蜜糖还是毒药?
[142. circular linked list II]
【160. 相交链表】
Use Charles to capture packets
R语言AirPassengers数据集可视化
A Dynamic Near-Optimal Algorithm for Online Linear Programming
百家讲坛 雍正十三年(下部)
已解决:一個錶中可以有多個自增列嗎
【21. 合并两个有序链表】
R language CO2 dataset visualization
Feign FAQ summary
软件测试——测试用例设计&测试分类详解
Alibaba cloud video on demand playback error, console access code:4400
Objective-C不同数据类型占用字节大小
已解决:一个表中可以有多个自增列吗
71-对2010年阿里一道Oracle DBA面试题目的分析
Performance test (I)
[Jianzhi offer] interview question 44 A digit in a sequence of numbers
直播预报|中国信息协会网信大讲堂第六期将于6月24日开播啦
Apple GCD source code
![[206. reverse linked list]](/img/c8/d83655395379a512c8b67a82dc4cae.png)


![[160. cross linked list]](/img/79/177e2c86bd80d12f42b3edfa1974ec.png)


