sroze / messenger-enqueue-transport

Uses Enqueue with Symfony's Messenger component.
MIT License
191 stars 55 forks source link

Allow passing arbitrary metadata through the transport dsn #65

Open volkyeth opened 5 years ago

volkyeth commented 5 years ago

It would be interesting if we were able to add arbitrary metadata to a transport's messages through the configuration.

Something like:

transports:
            my_transport: 'enqueue://sqs?topic[name]=topic&metadata[messageGroupId]=my-group-id'

then that metadata could be merged with the one that comes from TransportConfiguration stamps when sending the message

This way it would be easier to make it work with more transports and different configurations, like with SQS FIFO queues (https://github.com/sroze/messenger-adapter/issues/40), for instance.