当前位置:网站首页>[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 
边栏推荐
- 建立自己的网站(12)
- pytorch的模型保存加载和继续训练
- [160. cross linked list]
- 性能测试(一)
- Correspondence between int and char in C language
- 百家讲坛 黄帝内经(第一部)
- Visualization of R language penguins dataset
- How to use feign to construct multi parameter requests
- Apple corefoundation source code
- The access succeeds but an exception is thrown: could not find acceptable representation
猜你喜欢

字节跳动提出轻量级高效新型网络MoCoViT,在分类、检测等CV任务上性能优于GhostNet、MobileNetV3!...
![[redis]redis的持久化操作](/img/83/9af9272bd485028062067ee2d7a158.png)
[redis]redis的持久化操作

Alibaba cloud video on demand playback error, console access code:4400
![[redis]Redis6的事务操作](/img/50/639867a2fcb92082ea262a8a19bb68.png)
[redis]Redis6的事务操作

R语言organdata 数据集可视化
![[206. reverse linked list]](/img/c8/d83655395379a512c8b67a82dc4cae.png)
[206. reverse linked list]

R语言 co2数据集 可视化

Visualization of R language nutrient dataset
![[21. merge two ordered linked lists]](/img/ce/45b8cc740c8632f0cedc3ffd31620a.png)
[21. merge two ordered linked lists]

【206. 反转链表】
随机推荐
【513. 找树左下角的值】
R language organdata dataset visualization
[redis]Redis6的事务操作
Overview of common loss functions for in-depth learning: basic forms, principles and characteristics
Huawei cloud releases Latin American Internet strategy
R language universalbank CSV "data analysis
Baijia forum Huangdi Neijing (Part I)
底部菜单添加的链接无法跳转到二级页面的问题
字节跳动提出轻量级高效新型网络MoCoViT,在分类、检测等CV任务上性能优于GhostNet、MobileNetV3!...
R语言organdata 数据集可视化
Objective-C byte size occupied by different data types
SwiftUI如何模拟视图发光增大的动画效果
R 语言 wine 数据集可视化
Software testing - Test Case Design & detailed explanation of test classification
92-几个用match_recognize SQL写法示例
Flutter System Architecture(Flutter系统架构图)
redis学习笔记
【观察】软件行业创新进入“新周期”,如何在变局中开新局?
Performance test (I)
87-with as写法的5种用途