Distribt
Distribt copied to clipboard
RabbitMQ: messgereceiver locks the Thread
rabbitmq gets processed on a synchronous way, but the handler is asycn. for that reason we have to run the handler inside a task
var t = Task.Run(HandleMessage);
t.Wait();
but this blocks the trhead, ideally if possible, this should be done in a different way.