, (*1)
RabbitMQ-Worker
RabbitMQ-Worker as a daemon written in PHP., (*2)
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., (*3)
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:, (*4)
git clone git@github.com:kcyeu/rabbitmq-worker.git
Then use composer to pull all dependencies:, (*5)
composer install
That's it!, (*6)
Usage
Remember to set credentials in src/config.ini, then add -d argument to run it in background:, (*7)
php src/run.php [-d]
Changelog
1.0.0 (Mar 30, 2015)
Tested Environment
- Ubuntu 14.04.2 LTS
- CentOS 6
Contributing
Pull requests are always welcome. Please open an issue before submitting a pull request., (*8)
License
LGPL-3.0+, (*9)
==================================================
© 2015 Kuo-Cheng Yeu All rights reserved., (*10)