/aws_sqs

AWS SQS module for Drupal

Primary LanguagePHP

AWS Simple Queue Service (7.x-3.x)

This module uses AWS SQS as a backend for Drupal's queue system. You can use AWS SQS as a full replacement for your Drupal queues, or use it for certain queues.

Dependencies

Installation & Set-up

Download and Install Dependencies

drush dl aws_sqs composer_manager composer-8.x-1.x
drush en aws_sqs
drush composer-rebuild-file
drush composer-manager update --no-dev --optimize-autoloader

Set up your Amazon Account

Configure the Module

  • Visit admin/config/system/aws-queue in your site
  • Enter your creds
  • Set AwsSqsQueue as your default queue. If you don't want SQS to be your backend by default, leave it set to SystemQueue and instantiate SQS queues manually with AwsSqsQueue::get().

Test Drive with example_queue Module (Optional)

  • Download and install the queue_example module from the examples:

      drush dl examples
      drush en queue_example
    
  • Visit queue_example/insert_remove in your site

  • Add some items to a queue.

  • Visit AWS SQS Console and watch your queued items appear.

  • Try removing, claiming, releasing, and deleting items from the queue.

  • These changes should be reflected in the AWS Console.

Resources