Amazon Simple Queue System


This module is a very lightweight implementation of the Amazon Simple Queue System.
It supports all the Drupal Queue parameters and uses a library to take the heavy weight away from the module. For now you will need to use a fork of the module and a dev version of the library.

Required : Composer manager
Recommended : Queue Runner

Enable both modules and download the required libraries

drush en composer_manager
drush en aws_sqs
drush composer-rebuild-file
drush composer-execute update

Once the libraries are installed we can proceed and configure the module

  • go to admin/config/system/aws-queue and configure your AWS credentials. These credentials can be found at https://portal.aws.amazon.com/gp/aws/securityCredentials under Access Keys
  • If you want to replace all Drupal queue systems with the amazon queue you can check the checkbox in the admin page but this is not required.

See code snippet below on how to use this module

// initialize the queue
$queue = new awsSqsQueue('aws_test', 'us-east-2');
// Create the queue
$queue->createQueue();
// Get some data
$item = array('test', '1', '2', '3');
// Add the data to the queue
$queue->createItem($item);
// Fetch the item from the queue
$item = $queue->claimItem();

If you decide to move all your queues to Amazon platform and check the checkbox
you can use the following code

// initialize the queue
$queue = DrupalQueue::get('aws_test');
// Create the queue
$queue->createQueue();
// Get some data
$item = array('test', '1', '2', '3');
// Add the data to the queue
$queue->createItem($item);
// fetch the item from the queue
$item = $queue->claimItem();

Amazon Simple Queue System项目的Drush安装命令:复制到剪贴板

注:个别模块仍需开启相关子模块。
周安装量: 
295
维护状态: 
积极维护中
开发状态: 
积极开发中

推荐版本下载:

版本下载地址发布日期发布说明翻译下载
7.x-1.1tar.gz (14.72 KB) | zip (17.15 KB)2014年2月24日发布说明简 | 繁 | 更多

开发版本下载:

版本下载地址发布日期发布说明翻译下载
8.x-1.x-devtar.gz (14.55 KB) | zip (18.66 KB)2015年10月14日发布说明简 | 繁 | 更多
7.x-1.x-devtar.gz (14.58 KB) | zip (17.11 KB)2015年12月21日发布说明简 | 繁 | 更多