kaliop/queueingbundle-stomp
Composer 安装命令:
composer require kaliop/queueingbundle-stomp
包简介
Kaliop Queueing Bundle - Stomp plugin
README 文档
README
Adds support for the STOMP protocol to the Kaliop Queueing Bundle
STOMP is a protocol used by multiple messaging brokers, such as ActiveMQ, Apache Apollo and RabbitMQ (but we suggest you use AMQP to communicate with RabbitMQ, which is supported natively by the Queueing Bundle)
Currently the bundle is tested using Apache Apollo and Apache ActiveMQ.
See: https://stomp.github.io and https://github.com/kaliop-uk/kueueingbundle respectively for more details.
Installation
-
Install the bundle via Composer.
-
Enable the KaliopQueueingPluginsStompBundle bundle in your kernel class registerBundles().
-
Clear all caches if not on a dev environment
Usage
-
Start the messaging broker of your choice
-
Create a queue, using the appropriate management console:
-
Apollo: : no need, queues and topics are created based on need
-
ActiveMQ: no need, queues and topics are created based on need
-
RabbitMQ:
-
-
Set up configuration according to your broker
- copy queueingbundle_stomp_sample.yml in this bundle to your app/config folder, make sure you require it, and edit it
-
check that you can list the queue:
php app/console kaliop_queueing:managequeue list-configured -istompnot yet supported: ask the broker for queue info
php app/console kaliop_queueing:managequeue info -istomp <queue> -
push a message to the queue
php app/console kaliop_queueing:queuemessage -istomp <queue> <jsonpayload> -
receive messages from the queue
php app/console kaliop_queueing:consumer -istomp <queue>
Notes
-
Stomp does not natively support routing-keys the way that RabbitMQ does. Also, the implementation of Topic and Queue messaging patterns is left to the single brokers.
This bundle does add back support for routing-keys. It also strives to replicate the same messaging pattern regardless of the broker in use. The way to achieve that differs with each broker.
In particular:
- for Apollo, topics with persistent subscriptions are used
- for ActiveMQ, 'Virtual Topics' are used ( http://activemq.apache.org/virtual-destinations.html )
- NB: ActiveMQ 5.5 seems to have a bug with wildcard support when using '#' as key. If this is a problem for you, please upgrade to a later version
In the bundle configuration, the same wildcard characters are to be used regardless of teh broker in use: # and *
kaliop/queueingbundle-stomp 适用场景与选型建议
kaliop/queueingbundle-stomp 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 09 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 kaliop/queueingbundle-stomp 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 kaliop/queueingbundle-stomp 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2015-09-22