aimeos/ai-mqueue
Composer 安装命令:
composer require aimeos/ai-mqueue
包简介
Aimeos 3rd party message queue integration
README 文档
README
Aimeos file system extension
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
As every Aimeos extension, the easiest way is to install it via composer. 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
aimeos/ai-mqueue 适用场景与选型建议
aimeos/ai-mqueue 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 72 次下载、GitHub Stars 达 9, 最近一次更新时间为 2016 年 04 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「rabbitmq」 「extension」 「stomp」 「beanstalk」 「message queue」 「aimeos」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 aimeos/ai-mqueue 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 aimeos/ai-mqueue 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 aimeos/ai-mqueue 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
STOMP bindings for React.
Work with RabbitMQ in Laravel.
Microservice RPC through message queues.
A custom URL rule class for Yii 2 which allows to create translated URL rules
PHP AMQP Binding Library
The Yii2 extension uses jQuery jquery.carousel-1.1.min.js and makes image carousel from php array of structure defined.
统计信息
- 总下载量: 72
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 20
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2016-04-04