No video

An introduction to MassTransit using RabbitMQ (In ASP.NET Core)

  Рет қаралды 47,099

DotNet Core Central

DotNet Core Central

Күн бұрын

Пікірлер: 71
@Anja5233
@Anja5233 Жыл бұрын
FOR ANYONE WATCHING IN 2023: AddMassTransitHostedService() is not necessary anymore, if it throws an error just delete it
@vinr
@vinr Жыл бұрын
Even after two years, this is the best explanation on the subject, and I wish you continue to produce quality content, subbed!
@DotNetCoreCentral
@DotNetCoreCentral Жыл бұрын
Thanks, will do!
@letsoverengineer
@letsoverengineer 3 жыл бұрын
Wow, so simply - thank you for the first half of the video - it helped understanding the api a lot!
@DotNetCoreCentral
@DotNetCoreCentral 3 жыл бұрын
@Michal Bilinski, thanks for watching!
@JohnDoe-xi6df
@JohnDoe-xi6df 2 жыл бұрын
Based on the example from this video, I couldn't understand the benefit of using MassTransit. If I understand correctly, one service published a message and the other one consumed it. Isn't that what RabbitMQ does? What did we get by using MassTransit here?
@akashkarve1991
@akashkarve1991 3 жыл бұрын
Awesome!!! video. Very easy to understand and explained it very well. Looking forward more videos on Mass Transit & RabbitMQ. Best thing I liked about this video is that you have explained it in both ways normal as well as with extension methods which helps to understand things in better way. Keep it up mate. Appreciate your work. Thanks!!!
@DotNetCoreCentral
@DotNetCoreCentral 3 жыл бұрын
@aakash karve, thanks for watching the video!
@kysondarren460
@kysondarren460 3 жыл бұрын
you prolly dont give a damn but does anybody know a trick to get back into an Instagram account..? I was stupid lost the account password. I would love any tricks you can give me!
@lyricmathew8077
@lyricmathew8077 3 жыл бұрын
@Kyson Darren Instablaster :)
@kysondarren460
@kysondarren460 3 жыл бұрын
@Lyric Mathew I really appreciate your reply. I found the site on google and im waiting for the hacking stuff atm. Looks like it's gonna take a while so I will get back to you later with my results.
@kysondarren460
@kysondarren460 3 жыл бұрын
@Lyric Mathew It worked and I now got access to my account again. I am so happy! Thank you so much, you really help me out :D
@alirashidi795
@alirashidi795 2 жыл бұрын
Thank you It was the best example out there in internet
@DotNetCoreCentral
@DotNetCoreCentral 2 жыл бұрын
Thank you!
@Acesteef
@Acesteef Жыл бұрын
How would i use this if the two services cannot share the same namespace and cannot have a reference to the same Order model? I implemented this into both my microservices but they are both in a different namespace. Right now it is not sending or receiving any messages in RMQ.
@avtarsashia4897
@avtarsashia4897 2 жыл бұрын
Concept cleared. Its good tutorial to understand from basics
@DotNetCoreCentral
@DotNetCoreCentral 2 жыл бұрын
Thanks!
@jeganathperialwar7788
@jeganathperialwar7788 2 жыл бұрын
Explained well. Thanks for the wonderful lecture.
@DotNetCoreCentral
@DotNetCoreCentral 2 жыл бұрын
Thanks for watching!
@christophertanghare4884
@christophertanghare4884 3 жыл бұрын
I would like to see your video on saga pattern, I am watching for it 😁
@DotNetCoreCentral
@DotNetCoreCentral 3 жыл бұрын
@Christopher Tanghare, thanks! Hopefully this weekend.
@lalpj4856
@lalpj4856 2 жыл бұрын
Thank you😀
@oguzsisman9851
@oguzsisman9851 2 жыл бұрын
Thank you mate, very helpful
@SuperSagar55
@SuperSagar55 3 жыл бұрын
Thank you, Can you create a video on Distributed transaction with saga orch. pattern.
@DotNetCoreCentral
@DotNetCoreCentral 3 жыл бұрын
@Sagar Khairnar, thanks for watching! I will definitely do a video on the Orchestration saga pattern.
@lismai9906
@lismai9906 3 жыл бұрын
Why your publisher app's Configure(x) is using "temp-queue" but in your Consumer app, u r using "order-queue", isnt that gonna be an issue catching the message ?
@mahendranchinnaiah7593
@mahendranchinnaiah7593 3 жыл бұрын
Great effort. Thank you so much
@DotNetCoreCentral
@DotNetCoreCentral 3 жыл бұрын
@Mahendran Chinnaiah, thanks for watching as always! Appreciate your support.
@mahendranchinnaiah7593
@mahendranchinnaiah7593 3 жыл бұрын
@@DotNetCoreCentral am a big fan of your videos also eagerly waiting for your videos at Sunday 7pm cst
@DotNetCoreCentral
@DotNetCoreCentral 3 жыл бұрын
@@mahendranchinnaiah7593 thanks!
@user-sv9fe5qf5h
@user-sv9fe5qf5h 2 жыл бұрын
You help me a lot, I like the video and I will be your subscriber
@DotNetCoreCentral
@DotNetCoreCentral 2 жыл бұрын
Thanks for watching!
@Gimmiyimmy
@Gimmiyimmy 3 жыл бұрын
Thank you. Very well explained
@DotNetCoreCentral
@DotNetCoreCentral 3 жыл бұрын
@Atul Srivastava, thanks for watching!
@codewithkashif
@codewithkashif 3 жыл бұрын
I am still not able to figure out that what is the exact benefit of using mass transit...all these things we can do with rabbitmq without using this masstransit too...because adding also add extra complexity and required learning curve. So there must be something where it is making major impact....kindly help
@DotNetCoreCentral
@DotNetCoreCentral 3 жыл бұрын
@Kashif Reza, MassTransit by default implements the pattern of Exchange -> Queue, which mostly needs a thorough understanding to do it the right way. So that is one of the advantages. The other advantage, which I did not cover in my video yet is the ability to simplify the distributed transactions, which I intend to cover in future videos.
@codewithkashif
@codewithkashif 3 жыл бұрын
​@@DotNetCoreCentral Thanks a lot for detailed answer! distributed transaction means, Does it helps in implementing SAGA? I heard it also helps in implementing Outbox pattern..please lemme know if you have any plan to post any video around that. also last question i.e. Is MassTransit also available for classic .net framework?
@DotNetCoreCentral
@DotNetCoreCentral 3 жыл бұрын
@@codewithkashif yes, by distributed transaction I mean the implementation of SAGA. I have a plan to do a video in the future on this. MassTransit works with classic .NET Framework also as I recollect.
@shamilgurban6439
@shamilgurban6439 3 жыл бұрын
Thanks for great tutorial. But i have a question. My models are seperated in different projects so i should create models in two places. How can i bind exchanges so exchange from one project can find exchange from another project. They have different namings by default :(
@DotNetCoreCentral
@DotNetCoreCentral 3 жыл бұрын
@Shamil Gurban, I am not sure I understand the question. Exchanges are used to publish messages, so any project can bind to the exchange to publish messages. If you are subscribing to an exchange, the same holds true, you can subscribe from any project. The filename does not matter for the data model, as long as both have the same property name when they are serialized in JSON.
@lismai9906
@lismai9906 3 жыл бұрын
As long as your Contract class has the SAME NAMESPACE, it will trigger Consume(x) method. So ask your other dev for his namespace used in his "Order" class
@andreicapi3535
@andreicapi3535 3 жыл бұрын
Thank you
@DotNetCoreCentral
@DotNetCoreCentral 3 жыл бұрын
@andrei capi, thanks for watching!
@Gimmiyimmy
@Gimmiyimmy 3 жыл бұрын
I need to create topic exchange but don't know the syntex. Where I can find example and tutorials for this.
@DotNetCoreCentral
@DotNetCoreCentral 3 жыл бұрын
@Atul Srivastava, thanks for watching! You can do something like this: Host.ConnectReceiveEndpoint(yourqueue, x => { x.BindMessageExchanges = false; x.Consumer(); x.Bind(e => { e.RoutingKey = yourroutingkey; e.ExchangeType = ExchangeType.Topic; }); });
@Gimmiyimmy
@Gimmiyimmy 3 жыл бұрын
Thank you so much. 🙏🙏
@DotNetCoreCentral
@DotNetCoreCentral 3 жыл бұрын
@@Gimmiyimmy you are welcome sir!
@Gimmiyimmy
@Gimmiyimmy 3 жыл бұрын
@@DotNetCoreCentral Sir, Please don't call me sir. I am nothing in front of you. 😒
@DotNetCoreCentral
@DotNetCoreCentral 3 жыл бұрын
@@Gimmiyimmy we are all developers my friend, we all the same :)
@sridharsathya8719
@sridharsathya8719 2 жыл бұрын
Thanks.
@DotNetCoreCentral
@DotNetCoreCentral 2 жыл бұрын
@Sridhar Sathya, thanks for watching!
@user-rp9iis1en6h
@user-rp9iis1en6h 2 жыл бұрын
Excellent tutorial. What if I deploy 2 consumers and in the queue there are many requests. Is there any chance that both consumers will pick the same message and create a conflict?
@DotNetCoreCentral
@DotNetCoreCentral 2 жыл бұрын
@S. Z., no it will never get the same message for 2 consumers for the same queue. And that's not a feature of Masstransit, it is how RabbitMQ or other underlying queuing engine works.
@user-rp9iis1en6h
@user-rp9iis1en6h 2 жыл бұрын
@@DotNetCoreCentral in that case how multiple consumer will perform together? Suppose I have a queue called OrderPlaced. And there is two consumer, 1. PrepareDelivery 2. PrepareReceipt Whenever there is a item in order queue, these two consumer need to start their work. How this can be achieved with rabbitMq without using another new queue ?
@DotNetCoreCentral
@DotNetCoreCentral 2 жыл бұрын
@@user-rp9iis1en6h ​ for that each consumer have to have their dedicated queue, and connected from an exchange. I have covered this scenario in my RabbitMQ series.
@user-rp9iis1en6h
@user-rp9iis1en6h 2 жыл бұрын
@@DotNetCoreCentral Yes I have already seen them but couldn't understand how to configure exchange using massTransit.
@jelajahpasundanofficial
@jelajahpasundanofficial 3 жыл бұрын
Wow.. awesome. thank you dude. thank you so much
@DotNetCoreCentral
@DotNetCoreCentral 3 жыл бұрын
@risman afyandi, thanks for watching!
@xxXAsuraXxx
@xxXAsuraXxx 2 жыл бұрын
whats your preference between MassTransit and EasyNetQ?
@DotNetCoreCentral
@DotNetCoreCentral 2 жыл бұрын
@Kevin Wang, to be honest, MassTransit is a little advance and is very useful for managing complex workflow because it makes those easier. But if you have a very simple workflow, I will just use the default RabbitMQ client. I personally have never used EasyNetQ
@xxXAsuraXxx
@xxXAsuraXxx 2 жыл бұрын
Thank for the reply, does the masstransit saga only works only if you use their messaging api but not regular CQRS? I am still confused how their saga work and how does it work with dapper.
@DotNetCoreCentral
@DotNetCoreCentral 2 жыл бұрын
@@xxXAsuraXxx I have not used it yet, and the reason I have not used Masstransit with Saga because I like to keep more control of the code on my side instead of external packages where it makes sense. Saga is simple enough to do it yourself without using any framework, IMO.
@kwiatu5
@kwiatu5 Жыл бұрын
JSON, is that you?
Saga Design Pattern for managing Distributed Transactions (An Introduction)
15:21
How To Build Loosely Coupled Microservices With MassTransit
23:01
Milan Jovanović
Рет қаралды 33 М.
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 10 МЛН
The FASTEST way to PASS SNACKS! #shorts #mingweirocks
00:36
mingweirocks
Рет қаралды 12 МЛН
STOP using Minimal APIs for Large Projects!
6:20
Jono Williams
Рет қаралды 7 М.
“.NET 9 Is Killing MediatR, MassTransit & Wolverine!”
11:59
Nick Chapsas
Рет қаралды 84 М.
RabbitMQ in .NET Core (Part 1, Single producer and consumer with Queue)
19:38
DotNet Core Central
Рет қаралды 119 М.
Build Highly Scalable Applications With RabbitMQ in  .NET
14:02
Code Maze
Рет қаралды 3,5 М.
Как использовать RabbitMQ в ASP.NET Core
33:13
Creating a State Machine Saga With MassTransit (Orchestrated Saga)
15:41
Milan Jovanović
Рет қаралды 11 М.
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 10 МЛН