Amazon SQS Support
Ecotone support for Amazon SQS PHP
Last updated
Ecotone support for Amazon SQS PHP
Last updated
solid and powerful abstraction over asynchronous queues.
In order to use SQS Support
we need to add ConnectionFactory
to our Dependency Container.
We register our SqsConnectionFactory
under the class name Enqueue\Sqs\SqsConnectionFactory.
This will help Ecotone resolve it automatically, without any additional configuration.
To create , we need to create .
Now orders
channel will be available in Messaging System.
If you want to publish Message directly to Exchange, you may use of Publisher.
Reference name
- Name under which it will be available in Dependency Container.
Queue name
- Name of queue where Message should be published
Default Conversion [Optional]
- Default type, payload will be converted to.
withAutoDeclareQueueOnSend
- should Ecotone try to declare queue before sending message
withHeaderMapper
- On default headers are not send with message. You map provide mapping for headers that should be mapped to SQS Message
To connect consumer directly to a SQS Queue, we need to provide Ecotone
with information, how the Queue is configured.
Provides Consumer that will be registered at given name "orders_consumer"
and will be polling "orders"
queue