Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prolic/humusamqpdemomodule
This is a demo module for Humus AMQP Module
https://github.com/prolic/humusamqpdemomodule
Last synced: 2 months ago
JSON representation
This is a demo module for Humus AMQP Module
- Host: GitHub
- URL: https://github.com/prolic/humusamqpdemomodule
- Owner: prolic
- License: mit
- Created: 2014-07-18T08:41:17.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-19T06:07:30.000Z (over 8 years ago)
- Last Synced: 2024-10-09T10:12:30.848Z (3 months ago)
- Language: PHP
- Size: 26.4 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Humus AMQP Demo Module
=================This is a demo module for [Humus AMQP Module](https://github.com/prolic/HumusAmqpModule).
# ABANDONED!!!
## This module is no longer supported!About
-----Install this module to enable some demo consumers and producers as a start to learn with RabbitMQ.
Dependencies
------------- PHP 5.4.0
- [HumusAmqpModule](https://github.com/prolic/HumusAmqpModule)Installation
------------1. Add `"prolic/humus-amqp-demo-module": "dev-master"` to your `composer.json`
2. Run `php composer.phar install`
3. Enable the module in your `config/application.config.php` by adding `HumusAmqpDemoModule` to `modules`Usage
-----Setup Fabric
php public/index.php humus amqp setup-fabric
Start the demo consumer
php public/index.php humus amqp consumer demo-consumer
Send a message from StdIn to exchange
echo "my test message" | xargs -0 php public/index.php humus amqp stdin-producer demo-producer
Send a message from parameter to exchange
php public/index.php humus amqp stdin-producer demo-producer "my test message"
Send 1000000 messages to topic exchange with random error-level as routing key
php public/index.php humus amqp consumer topic-consumer-error 1000000
Consume 100 messages from topic exchange by routing key error (0)
php public/index.php humus amqpdemo topic-producer 100
Start the multiple consumer
php public/index.php humus amqp multiple-consumer multiple-consumer
Send messages to multiple consumer
php public/index.php humus amqp stdin-producer topic-producer --route=level.err err
php public/index.php humus amqp stdin-producer topic-producer --route=level.warn warn
php public/index.php humus amqp stdin-producer topic-producer --route=level.info info
php public/index.php humus amqp stdin-producer topic-producer --route=level.debug debug