earls/stork-command-queue-bundle
Composer 安装命令:
composer require earls/stork-command-queue-bundle
包简介
Service for queue line commands
README 文档
README
##Overview Stork is a public project and intend to replace Flamingo. It uses the experience of Flamingo but in a new design in order to minimize the use of resources from the system.
Stork command queue is a queue manager tool for Symfony command lines with two parts:
- Stork Launcher Service: Used for push new line command to the queue from Symfony framework.
- Stork Manager Command: It is a line command called after a new line command is added to the queue in order to manage the execution of the commands. Stork manager instantiate a new Symfony kernel in order to serve to an specific queue and do not end until all the commands from the queue have been executed.
With this new approach we intend to save resources because there is just one process running in the system serving for all the command in the queue and perform better time of response because the instantiation of the kernel is performed just one time. The idea of use a process per queue is for isolate each queue, running in their own sandbox and allow to run many queue in parallel.
##Process
- When a line command is executed through the queue, the command should be passed to: Stork.launcher service in order to queue it and execute in sequence.
- After the line command was added to the queue a verification is performed against the queue process, if there is a process running then continue with the execution otherwise a new instance of the kernel is instantiated and leave it running until all the line command in the queue has been executed.
- The control of the queues is throught the use of tables.
- Basic operations have been implemented:
- List: list all the line commands pending to execute in an specific queue.
- Clear: remove all the pending line command, leaving the queue empty and terminate the execution of the manager.
- Add: add a line command via line command directly.
- Remove: remove an specific line command from the queue.
- Stop: stop the execution of the pending line commands.
- Start: resume the execute of the pending line commands.
- Log: Show the log available.
##Content
earls/stork-command-queue-bundle 适用场景与选型建议
earls/stork-command-queue-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 242 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 09 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「queue」 「command」 「task」 「runner」 「report」 「rhino」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 earls/stork-command-queue-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 earls/stork-command-queue-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 earls/stork-command-queue-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Wrapper for exec and it's results
Symfony bundle to monitor and execute commands
PHP AMQP Binding Library
Shell command module for PHP.
A Laravel package to monitor queue jobs.
Expose the DDev executable commands to the Robo task runner.
统计信息
- 总下载量: 242
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-09-02