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

<?php
// 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

<?php
// 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();
?>

Project Information

Downloads