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

Amazon SNS transport. Publish-Subscribe support based on combination of SQS and SNQ #672

Merged
merged 10 commits into from
Feb 20, 2019

Conversation

makasim
Copy link
Member

@makasim makasim commented Dec 6, 2018

Amazon SNS transort implementation and a step towards #252 implementation.

<?php
use Enqueue\Sns\SnsConnectionFactory;

$factory = new SnsConnectionFactory([
    'key' => getenv('ENQUEUE_AWS__SQS__KEY'),
    'secret' => getenv('ENQUEUE_AWS__SQS__SECRET'),
    'region' => getenv('ENQUEUE_AWS__SQS__REGION'),
]);
$context = $factory->createContext();

$topic = $context->createTopic('test_enqueue');
$context->declareTopic($topic);

$message = $context->createMessage('a_body');

$context->createProducer()->send($topic, $message);

TODO

@makasim
Copy link
Member Author

makasim commented Feb 19, 2019

LGTM

@makasim makasim changed the title Amazon SNS transport. Amazon SNS transport. Publish-Subscribe support based on combination of SQS and SNQ Feb 19, 2019
@makasim makasim merged commit b38e40a into master Feb 20, 2019
@makasim makasim deleted the sns branch February 20, 2019 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants