Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sqs] Multi region support #664

Merged
merged 3 commits into from
Dec 3, 2018
Merged

[sqs] Multi region support #664

merged 3 commits into from
Dec 3, 2018

Conversation

makasim
Copy link
Member

@makasim makasim commented Nov 30, 2018

ref #439

Multi region examples

Enqueue SQS provides a generic multi-region support. This enables users to specify which AWS Region to send a command to by setting region on SqsDestination.
You might need it to access SQS FIFO queue because they are not available for all regions.
If not specified the default region is used.

<?php
use Enqueue\Sqs\SqsConnectionFactory;

$context = (new SqsConnectionFactory('sqs:?region=eu-west-2'))->createContext();

$queue = $context->createQueue('foo');
$queue->setRegion('us-west-2');

// the request goes to US West (Oregon) Region
$context->declareQueue($queue);

@makasim makasim force-pushed the sqs-multi-region-support branch from 94d8113 to caadd76 Compare December 1, 2018 15:01
@makasim makasim changed the title [sqs][POC] Multi region support [sqs] Multi region support Dec 3, 2018
@makasim makasim merged commit ce8414d into master Dec 3, 2018
@makasim makasim deleted the sqs-multi-region-support branch December 3, 2018 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant