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

RabbitMQ exchange type is fanout #17

Open
mehmetozkaya opened this issue May 6, 2021 · 3 comments
Open

RabbitMQ exchange type is fanout #17

mehmetozkaya opened this issue May 6, 2021 · 3 comments

Comments

@mehmetozkaya
Copy link
Member

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

@plamenkoyovchev
Copy link

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.

@ofaruksahintr
Copy link

ofaruksahintr commented May 22, 2021

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.

@mehmetozkaya
Copy link
Member Author

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

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

3 participants