定制 kcyeu/rabbitmq-worker-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kcyeu/rabbitmq-worker-php

Composer 安装命令:

composer require kcyeu/rabbitmq-worker-php

包简介

RabbitMQ worker as a daemon, which uses RedisCluster backend.

README 文档

README

RabbitMQ-Worker RabbitMQ-Worker

RabbitMQ-Worker as a daemon written in PHP.

RabbitMQ-Worker runs as a daemon. It consumes and digests messages from RabbitMQ then save result to RedisCluster, RedLock algorithm was adopted for distributed lock.

Table of Contents

Features

  • Redis as data storage
  • Shared memory lock which prevents duplicate instance
  • Support signal
  • Configurable worker count

Prerequisites

Getting Started

The easiest way to get started is to clone the repository:

git clone git@github.com:kcyeu/rabbitmq-worker.git

Then use composer to pull all dependencies:

composer install

That's it!

Usage

Remember to set credentials in src/config.ini, then add -d argument to run it in background:

php src/run.php [-d]

Changelog

1.0.0 (Mar 30, 2015)

  • Debut

Tested Environment

  • Ubuntu 14.04.2 LTS
  • CentOS 6

Contributing

Pull requests are always welcome. Please open an issue before submitting a pull request.

License

LGPL-3.0+

================================================== © 2015 Kuo-Cheng Yeu All rights reserved.

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0
  • 更新时间: 2015-03-29