What Is A Message Queue + RabbitMQ and MassTransit Integration

preview_player
Показать описание

Message queues are required in most modern systems for the great benefits they bring. They're very useful for designing decoupled communication between components by passing messages to the queue. In this video, I'll show you how to use a message queue with MassTransit and connect it to RabbitMQ to publish messages.

Join my weekly .NET newsletter:

Read my Blog here:

Subscribe for more:

Chapters
0:00 Running RabbitMQ in Docker
0:46 Configuring message broker settings
2:12 MassTransit configuration
4:30 Why is a message queue useful?
5:40 Publishing messages to the queue
8:21 Implementing EventBus with MassTransit
10:46 Consuming messages from the queue
Рекомендации по теме
Комментарии
Автор

Great video, glad you're having fun exploring MassTransit!

PhatBoyG
Автор

Very good video, but I think Mass Transit + RabbitMQ would deserve and need more content. I hope you will do some follow up videos for this. Show the difference between Orchestration and Choreography. Maybe do a seperate little project and debug through 3-4 microservices involved in a transaction etc.

majormartintibor
Автор

@Milan awesome video on RabbitMQ.
Looking forward to see more video on this playlist like Mediator to RabbitMQ, Mass Transit - Publish vs. Send, Commands etc.

velkumars
Автор

Impeccable timing, I'm just trying to get started with rabbitmq 🙂

mylesdavies
Автор

Great video, I Learn a lot from u thank u

DoSoft-tp
Автор

It's very interesting video. Thank you a lot for all.

kodindoyannick
Автор

Great One Milan as usual
I was searching for a related video on the channel to comment about new video idea

It is about how to create a consumer and producer console template so that when i need new consumer or producer i just go and create a new project of that template 😅

mahmoudalaskalany
Автор

Good video and useful to explain the subject matter. I used to agree but honestly if you want to go at scale you need to move to the 2.0 (ish) of queue tech which are the cloud native queues (rabbit types) and logs (think kafka) in gcp, azure and aws. These systems provide much deeper serverless options that can scale up with little hassle. (chief arch, fortune 5)

allenbythesea
Автор

Excellent video Milan as always! I just started to learn MassTransit this week and I was need one of your videos about MassTransit, so you read my mind!
2 questions: Can you share the source code of the video? And, MassTransit have a Mediator pattern implementation, can we replace the MediatR library for MassTransit Mediator? Greetings from Argentina!!!

estebanhugosomma
Автор

Pressed like before actually watching the video.

pqyh
Автор

I usually add event to the object name as well, it helps me to show explicit intent modeling IMO

nove
Автор

Great video. But its more interesting to see how to interact with non-.net consumers. Who do not know anything about masstransit and its envelope and other things.

chudo
Автор

Great video!

So RabbitMQ is the lightweight database/queue persisting the events.
You hook up Mass Transit to connect to this 'queue' and whenever an event is persisted to the queue the appropriate mass transit event handler will consume it.

Is this an alternative to the transactional outbox pattern where you raise events to the DB and process them with a background service? They are similar. I can see the benefit of both for sure.

This one feels more lightweight than the TransactionalOutbox -> Background Service reading jobs. But maybe that's because I am considering that with the raising of domain events and the aggregate root unit of work commits to db.

pureevil
Автор

Thank you, I have one question. When you publish the message how the RabbitMq stores the data? I mean does it make some kind of serialization ( json, byte array) ?

davittonoyan
Автор

Thanks for another great video.

should it not be extending your CLEAN architecture video where the Outbox pattern was used to persist events in the database and Quartz/Hangfire as background service using MassTransit to push those events from the database to Queuing service?

salmanzafar-jriu
Автор

Really nice explanation/demo. I recommend you to upgrade your mic and then you'll sounds like a real pro content creator. Knowledge wise, seems like you already got what it takes :)

nl
Автор

What is the level of support for Mass Transit for the Outbox pattern? Is this going to be presented later or we rely on the video already shared in the Clean Architecture series?

kostasgkoutis
Автор

Hi Milan! Can I ask you something? When you use records in C# is it much simple and less code with only the constructor and pass the values through the constructor instead of properties? or this is just a clean-written code? After all, records are read-only I know. Maybe I'm wrong. Can't be modified additionally in another place with accessing some property. Thanks for the videos 🙂. Поздрав од Македонија. 😉

TheKsenija
Автор

Great video, but could you explain how you've set up your project to run in a docker container. Apologies if I've missed a video where you explained this.

ggoetzu
Автор

Is this a good replacement for outbox pattern? Still experimenting and all those patterns are a tiny bit hard to swallow without practical experience.

Thanks for the great video

_JustBeingCasual