Download the PHP package xiaoyongbrother/redis-message without Composer
On this page you can find all versions of the php package xiaoyongbrother/redis-message. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download xiaoyongbrother/redis-message
More information about xiaoyongbrother/redis-message
Files in xiaoyongbrother/redis-message
Download xiaoyongbrother/redis-message
More information about xiaoyongbrother/redis-message
Files in xiaoyongbrother/redis-message
Vendor xiaoyongbrother
Package redis-message
Short Description redis-message 1.0
License BSD 3-Clause
Package redis-message
Short Description redis-message 1.0
License BSD 3-Clause
Please rate this library. Is it a good library?
Informations about the package redis-message
Redis应用--消息传递
阅读目录
- 1、摘要
- 2、实现方法
- 3、一对一消息传递
- 4、多对多消息传递
1、摘要
消息传递这一应用广泛存在于各个网站中,这个功能也是一个网站必不可少的。常见的消息传递应用有,新浪微博中的@我呀、给你评论然后的提示呀、赞赞赞提示、私信呀、甚至是发微博分享的新鲜事;知乎中的私信呀、live发送过来的消息、知乎团队消息呀等等。
2、实现方法
消息传递即两个或者多个客户端在相互发送和接收消息。
通常有两种方法实现
第一种为消息推送。Redis内置有这种机制,publish往频道推送消息、subscribe订阅频道。这种方法有一个缺点就是必须保证接收者时刻在线(即是此时程序不能停下来,一直保持监控状态,假若断线后就会出现客户端丢失信息)
第二种为消息拉取。所谓消息拉取,就是客户端自主去获取存储在服务器中的数据。Redis内部没有实现消息拉取这种机制。因此我们需要自己手动编写代码去实现这个功能。
在这里我们,我们进一步将消息传递再细分为一对一的消息传递,多对多的消息传递(群组消息传递)。
安装
使用
3、一对一发送消息
All versions of redis-message with dependencies
PHP Build Version
Package Version
No informations.
The package xiaoyongbrother/redis-message contains the following files
Loading the files please wait ....