Download the PHP package wantp/reliable-queue without Composer
On this page you can find all versions of the php package wantp/reliable-queue. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package reliable-queue
reliable-queue
reliable queue for php
简述
- PHP版本 >=7.0.0
- 注意module的命名,避免不同业务使用相同的module导致意外的错误
- 暂时只支持rabbitMq
- 实现可靠队列,简单的配置即可实现自动重试,无法再次重试时进入失败队列,使用方法可参考examples中reliable-queue的内容
- 实现延迟队列,推送消息到延迟队列,到达延迟时间后消息进入常规队列,使用方法可参考examples中delay-queue的内容
- 应用场景
- 发送通知时,接收方返回失败,根据设置的不同重试时间间隔,到达时间后自动重试
- 某种业务逻辑处理失败概率较高但重试成功概率较高时
使用方法
引用包
使用
重试的说明
失败的说明
可靠队列示例
推送消息到常规队列
publish.php
消费常规队列
consume.php
examples中提供了一些使用示例,以供参考
All versions of reliable-queue with dependencies
PHP Build Version
Package Version
The package wantp/reliable-queue contains the following files
Loading the files please wait ....