bbit/sqs-command-queue-bundle 问题修复 & 功能扩展

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

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

bbit/sqs-command-queue-bundle

最新稳定版本:v1.0

Composer 安装命令:

composer require bbit/sqs-command-queue-bundle

包简介

symfony BBITSqsCommandQueueBundle

README 文档

README

Latest Stable Version

SqsCommandQueueBundle is a simple bundle, wich you can use, to queue commands on amazon SQS. This bundle then provides a worker, wich can be run on several servers, and will execute the commands, on one of the several workers.

Step 1: Download BBITSqsCommandQueueBundle using composer

Add BBITSqsCommandQueueBundle in your composer.json:

{
    "require": {
        "bbit/sqs-command-queue-bundle": "dev-master",
    }
}

Now tell composer to download the bundle by running the command:

$ php composer.phar update bbit/sqs-command-queue-bundlee

Composer will install the bundle to your project's vendor/BBIT directory.

Step 2: Enable the bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new BBIT\SqsCommandQueueBundle\BBITSqsCommandQueueBundle(),
    );
}

Step 3: Configure the bundle

bbit_sqs_command_queue:
    aws_sqs_key: xxx
    aws_sqs_secret: xxxxxxxxx
    aws_sqs_region: eu-central-1
    aws_sqs_queue: https://sqs.eu-central-1.amazonaws.com/xx11xx11/xx-xx

Usage:

Send a command to the queue:

$container->get('sqs_queue')->addCommand('app/console cache:clear');

The worker:

app/console bbit:sqs-command-queue:work 

More BBIT Bundles:

AsyncDispatcherBundle is a simple bundle which provides you with an async event dispatcher, which will store events untill kernel.terminate, and then fire them using the regular event dispatcher. Latest Stable Version

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-21