restho.blogg.se

Masstransit on docker
Masstransit on docker








masstransit on docker

  • Register RabbitMQ as the messaging queue.
  • Register the SignalR ChatHub class using the SignalR integration.
  • The dependency injection service setup is pretty straight forward. It appears there are a couple of other chat demos linked that are fancier. One thing to note is that MassTransit made this a super simple website with no bells-and-whistles so to not get those confused with the demo itself.

    #MASSTRANSIT ON DOCKER CODE#

    So lets look at the important parts of the code that make this work. See below that as a message from one of the three clients submits the message, it appears near-instantly on all websites (the console app doesn’t receive messages, only sends.) I actually ran each running website under two browsers (Chrome and Firefox) just to demonstrate a more real-world app this could be. The code is actually ready out-of-the-box (or repo) by checking it out of Github here: MassTransit/Sample-SignalRīasically run the Docker Compose script, get RabbitMQ up and running, and then dotnet run the two websites and console app. You can find the description to the project here: I found that MassTransit itself has a sample application showing integration with the SignalR backplane. Not to be cut short, I searched the interwebs for a similar tutorial that is more recent.

    masstransit on docker

    It was at this moment that I realized that the article was from 2015 and enough breaking changes to MassTransit, Autofac, and other libraries had occurred that I was not going to be able to complete this tutorial.










    Masstransit on docker