earls/stork-command-queue-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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 我们能提供哪些服务?
定制开发 / 二次开发

基于 earls/stork-command-queue-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 242
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 14
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 12
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-02