https://github.com/aimeos/ai-mqueue
Aimeos message queue adapter
https://github.com/aimeos/ai-mqueue
Last synced: 2 months ago
JSON representation
Aimeos message queue adapter
- Host: GitHub
- URL: https://github.com/aimeos/ai-mqueue
- Owner: aimeos
- License: lgpl-3.0
- Created: 2016-03-29T14:42:01.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2025-03-09T09:21:04.000Z (3 months ago)
- Last Synced: 2025-03-21T15:45:21.068Z (3 months ago)
- Language: PHP
- Size: 149 KB
- Stars: 9
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Aimeos file system extension
[](https://circleci.com/gh/aimeos/ai-mqueue)
[](https://coveralls.io/r/aimeos/ai-mqueue?branch=master)
[](https://scrutinizer-ci.com/g/aimeos/ai-mqueue/?branch=master)
[](https://packagist.org/packages/aimeos/ai-mqueue)The Aimeos message queue extension contains adapter for pushing and retrieving
arbitrary messages to remote message queue servers to. Thus, processing of
resource intensive tasks can be postponed and offloaded to another server. This
is necessary for scaling really big setups.## Table of contents
- [Installation](#installation)
- [Configuration](#configuration)
- [License](#license)
- [Links](#links)## Installation
As every Aimeos extension, the easiest way is to install it via
[composer](https://getcomposer.org/). If you don't have composer installed yet,
you can execute this string on the command line to download it:```
php -r "readfile('https://getcomposer.org/installer');" | php -- --filename=composer
```To add the extionsion to your composer-based installation, execute:
```
composer req "aimeos/ai-mqueue"
```These command will install the Aimeos extension into the extension directory and it will be available immediately.
## Configuration
All message queue adapters are configured below the ```resource/mq``` configuration
key, e.g. in the resource section of your config file:
```
'resource' => [
'mq' => [
// message queue adapter specific configuration
],
],
```### AMQP (RabbitMQ, Azure, Apache ActiveMQ + Qpid, MQlight and others)
To use the AMQP adapter, add this line to the `require` section of your
`composer.json` or (`composer.aimeos.json`) file:
```
"require": [
"php-amqplib/php-amqplib": "~3.0",
...
],
```The available configuration options are the one offered by the `php-amqplib`
library:
```
'mq' => [
'adapter' => 'AMQP',
'host' => 'localhost', // optional
'port' => 5672, // optional
'username' => 'guest', // optional
'password' => 'guest', // optional
'vhost' => '/', // optional
'insist' => false, // optional
'login_method' => 'AMQPLAIN', // optional
'login_response' => null, // optional
'locale' => 'en_US', // optional
'connection_timeout' => 3.0, // optional
'read_write_timeout' => 3.0, // optional
'keepalive' => false, // optional
'heartbeat' => 0, // optional
],
```### Beanstalk
To use the Beanstalk adapter, add this line to the `require` section of your
`composer.json` or (`composer.aimeos.json`) file:
```
"require": [
"pda/pheanstalk": "~3.0",
...
],
```The available configuration options are the one offered by the `pheanstalk`
library:
```
'mq' => [
'adapter' => 'Beanstalk',
'host' => 'localhost', // optional
'port' => 11300, // optional
'conntimeout' => 3, // optional
'readtimeout' => 30, // optional
'persist' => false, // optional
],
```### Stomp
To use the Stomp adapter, make sure you've installed the "stomp" PHP extension.
Most of the time there's already a package for the most widely used Linux
distributions available.The available configuration options are:
```
'mq' => [
'adapter' => 'Stomp',
'uri' => 'tcp://localhost:61613', // optional
'username' => null, // optional
'password' => null, // optional
],
```## License
The Aimeos message queue extension is licensed under the terms of the LGPLv3
Open Source license and is available for free.## Links
* [Web site](https://aimeos.org/)
* [Documentation](https://aimeos.org/docs)
* [Help](https://aimeos.org/help)
* [Issue tracker](https://github.com/aimeos/ai-mqueue/issues)
* [Source code](https://github.com/aimeos/ai-mqueue)