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

Symfony Messenger and Swarrot compatibility #164

Open
db306 opened this issue Oct 21, 2019 · 1 comment
Open

Symfony Messenger and Swarrot compatibility #164

db306 opened this issue Oct 21, 2019 · 1 comment

Comments

@db306
Copy link

db306 commented Oct 21, 2019

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

@odolbeau
Copy link
Member

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. :)

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

No branches or pull requests

2 participants