当前位置:网站首页>[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 
边栏推荐
- 84-我对网传<52 条 SQL 语句性能优化策略>的一些看法
- PlainSelect.getGroupBy()Lnet/sf/jsqlparser/statement/select/GroupByElement;
- 云服务器中安装mysql(2022版)
- Japanese anime writers and some of their works
- Scheduling with Testing
- Use Charles to capture packets
- Objective-C不同数据类型占用字节大小
- Huawei cloud releases Latin American Internet strategy
- 超快变形金刚 | 用Res2Net思想和动态kernel-size再设计 ViT,超越MobileViT
- 【奇葩需求之记录对象不同的日志】
猜你喜欢

慕课5、服务发现-Nacos

Xunrui CMS custom data interface PHP executable code

R 语言 wine 数据集可视化
![[138. copy linked list with random pointer]](/img/87/b2f1d224cfc627b4311208ccb9e274.png)
[138. copy linked list with random pointer]

软件测试——测试用例设计&测试分类详解

慕课6、实现负载均衡-Ribbon

Fluent system architecture

The road to systematic construction of geek planet business monitoring and alarm system

The access succeeds but an exception is thrown: could not find acceptable representation
![[palindrome structure of or36 linked list]](/img/67/33730a30c715db573e1d4f7e5556da.png)
[palindrome structure of or36 linked list]
随机推荐
访问成功但抛出异常:Could not find acceptable representation
【142. 环形链表 II】
Visualization of R language penguins dataset
MYSQL 几个常用命令使用
【OR36 链表的回文结构】
[redis]Redis6的主从复制
如何使用Feign构造多参数的请求
【20. 有效的括号】
SwiftUI如何模拟视图发光增大的动画效果
Moke 6. Load balancing ribbon
How to use feign to construct multi parameter requests
Code to Image Converter | 代码生成漂亮图片工具
Golang學習筆記—結構體
[redis]配置文件
苹果CoreFoundation源代码
R语言midwest数据集可视化
[20. valid brackets]
如何计算 R 中的基尼系数(附示例)
Solutions to Oracle system/ user locking
R 语言 UniversalBank.csv“ 数据分析