Download the PHP package ruesin/delay-server-single without Composer
On this page you can find all versions of the php package ruesin/delay-server-single. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ruesin/delay-server-single
More information about ruesin/delay-server-single
Files in ruesin/delay-server-single
Download ruesin/delay-server-single
More information about ruesin/delay-server-single
Files in ruesin/delay-server-single
Vendor ruesin
Package delay-server-single
Short Description Single Delay-Queue-Server
License Apache-2.0
Package delay-server-single
Short Description Single Delay-Queue-Server
License Apache-2.0
Keywords delay-queue
Please rate this library. Is it a good library?
Informations about the package delay-server-single
delay-server-single
基于 Redis 实现的延时队列,只提供简单的延时能力,不负责业务相关队列,需要在创建队列时提供业务队列的连接信息,消息到期时自动将消息移动到业务队列。
建议使用delay-server,已经做了对此服务的兼容。
依赖
- Redis > 3.2
- PHP > 7.0
- Swoole Extension > 1.9.5
- predis 1.1.1
- swover > 1.0.0
安装
配置
拷贝./config/samples/*.php
到./config/
,并按需修改:
queue.php
队列定义redis.php
Redis服务器配置secrets.php
验证签名的密钥对server.php
服务启动的配置文件,参考swover
使用
-
Process 服务
持续检查到期消息,将到期消息从延迟队列移动到活跃的业务队列。
-
Sockets 服务
接收客户端请求,实现创建队列、删除队列、发送延时消息。可以使用
http
或tcp
启动相应的swoole服务。
也可以选择使用 nginx + php-fpm,将网站目录指向./public/
即可。
All versions of delay-server-single with dependencies
PHP Build Version
Package Version
Requires
ruesin/swover Version
^1.1
predis/predis Version 1.1.1
php Version >=7.0
ext-json Version *
predis/predis Version 1.1.1
php Version >=7.0
ext-json Version *
The package ruesin/delay-server-single contains the following files
Loading the files please wait ....