Download the PHP package michelv/rabbitmq-scaler-bundle without Composer

On this page you can find all versions of the php package michelv/rabbitmq-scaler-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package rabbitmq-scaler-bundle

RabbitMqScalerBundle

Provides a command to launch RabbitMq consumers when the need arises.

About

The RabbitMqScalerBundle extends php-amqplib's RabbitMqBundle by adding a command that handles launching your consumers when they are needed.

Every N seconds (default is N=10), the command will check whether there are enough workers to handle the number of messages in the given queue.

The command inherits from rabbitmq:consumer, so that any argument for that command will be applied to the command that launches a consumer.

Consumers are launched, but not terminated. This is something that can be done automatically by setting a connection timeout in your consumer's configuration, or by specifying a number of messages to handle using the option.

Installation

Require the bundle and its dependencies with composer:

Register the bundle and the bundle that it depends on:

Configuration

Queue options

The command will regularly query the RabbitMQ server for the state of the queue being consumed. For this purpose, it needs to know the exact options that you have set up with php-amqplib's RabbitMqBundle.

For example, with the following configuration:

You will need to add this configuration:

Defaults for the command

You can change the defaults in your configuration file.

The defaults are defined thusly:

Examples

No consumers when there are no tasks, a maximum amount of 20 consumers, check every 5 seconds:

Default settings, but each consumer must handle at most 50 messages, or quit when they have used over 100 MB of RAM:

Default settings, but each consumer is niced, and the command will stop after 10 iterations:


All versions of rabbitmq-scaler-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
php-amqplib/rabbitmq-bundle Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package michelv/rabbitmq-scaler-bundle contains the following files

Loading the files please wait ....