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.
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();
- Maintenance status: Actively maintained
- Development status: Under active development
- Module categories: Performance and Scalability
- Reported installs: 98 sites currently report using this module. View usage statistics.
- Downloads: 4,122
- Last modified: December 1, 2014
- Stable releases are covered by the security advisory policy.
Look for the shield icon below.