-
-
Notifications
You must be signed in to change notification settings - Fork 280
Queue URL
Pablo Cantero edited this page Jul 2, 2017
·
5 revisions
The preferable way of configuring queues in Shoryuken is using their names, but in case you want to configure their URLs, Shoryuken also supports that:
concurrency: 25
delay: 10
queues:
- ['https://sqs.us-east-1.amazonaws.com/account-id/queue-name', 1]
shoryuken -r ./workers.rb -q https://sqs.us-east-1.amazonaws.com/account-id/queue-name
class Worker
include Shoryuken::Worker
shoryuken_options queue: 'https://sqs.us-east-1.amazonaws.com/account-id/queue-name'
def perform(sqs, body)
# ...
end
end
Configuring the queue URLs allows you to consume messages from multiple regions (and accounts).