Retry on MassTransit connection

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Retry on MassTransit connection



I have developed a sample code of two microservices (publisher and subscriber) both on separate containers. They use RabbitMq as a separate container for the messaging and MassTransit on top of it. you have all the code here on github:
https://github.com/tabareh/netcore_masstransit_rabbitmq_container.git



As you know it takes a bit of time untill RabbitMq is up and running and that causes my subscriber microservice to fail with RabbitMqConnectionException



The problem is that UseRetry doesn't work on MassTransit. Does anyone know why?



The exact code for retry is here: https://github.com/tabareh/netcore_masstransit_rabbitmq_container/blob/master/subscriber/Configurator.cs





There is already an issue for this: github.com/MassTransit/MassTransit/issues/1158
– Chris Patterson
Aug 10 at 19:09





Polly could be an option to implement retry
– Mohammad Reza Sadreddini
Aug 15 at 4:41





Yes, but masstransit should be able to handle that. Will wait until the issue is resolved
– Mohsen Tabareh
Aug 15 at 14:52









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard