run-aspnetcore-microservices icon indicating copy to clipboard operation
run-aspnetcore-microservices copied to clipboard

RabbitMQ exchange type is fanout

Open mehmetozkaya opened this issue 4 years ago • 3 comments

Even we are using topic exchange model which is pub/sub pattern implementation. It seems fanout on RabbitMQ when send basketcheckout event to queue in the RabbitMQ Dashboard. Need to investigate - udemy -128

mehmetozkaya avatar May 06 '21 07:05 mehmetozkaya

Hi Mehmet, do you have some update on this issue ? I'm struggling to find out why the exchange type is fanout when I've explicitly set it to be Direct exchange.

plamenkoyovchev avatar May 10 '21 14:05 plamenkoyovchev

Hi all,

Everything looks ok. All exchange type is set to fanout default on Masstransit. You have to override them, If you need to change them. messages --> EventBus.Messages.Events:BasketCheckoutEvent --> basketcheckout-queue --> basketcheckout-queue

What's your plan? topic or direct and whats the routing key ?

You can take a look at this; In Publisher (Basket.Api): cfg.Publish<BasketCheckoutEvent>(c => { c.ExchangeType = "direct"; })

In Subs (Ordering.Api): c.Bind<BasketCheckoutEvent>(c => { c.ExchangeType = "direct"; })

*BTW I didn't watch the course.

ofaruksahintr avatar May 22 '21 20:05 ofaruksahintr

Thanks for sharing this. we will set a topic exchange model so I will set the exchangetype as a topic.

mehmetozkaya avatar May 24 '21 07:05 mehmetozkaya