SwarrotBundle icon indicating copy to clipboard operation
SwarrotBundle copied to clipboard

Symfony Messenger and Swarrot compatibility

Open db306 opened this issue 4 years ago • 1 comments

Hello, I would like to know if Swarrot is "compatible" with Messenger or whether it makes no point of using both ? I use Messenger for internal bus and I dispatch messages on a rabbitmq but there is no retry mechanism and seems like there are many options missing that I can find here. Can we configure Messenger as a custom broker for instance ?

Thank you very much

db306 avatar Oct 21 '19 13:10 db306

Hi @db306

I did not use Messenger enough to give you a perfect answer, but here is my opinion.

Messenger is fine if you want to deal with a broker (any broker) with the same Symfony application (for publishing & processing of messages). However it lacks some useful features (like retry afaik). Swarrot is fine when you have "advanced" needs, specially if you use RabbitMQ.

You can use both Messenger & swarrot in your application depending on your needs: Messenger for simple needs & swarrot when you have to deal with more complex needs for example. You could also write a Swarrot Message Provider which will use Messenger to retrieve messages but I'm not sure it makes sens.

Personally, I would use Swarrot only because I know it pretty well but I'm definitively not objective enough. :)

odolbeau avatar Oct 24 '19 08:10 odolbeau