FOR ANYONE WATCHING IN 2023: AddMassTransitHostedService() is not necessary anymore, if it throws an error just delete it
@vinr Жыл бұрын
Even after two years, this is the best explanation on the subject, and I wish you continue to produce quality content, subbed!
@DotNetCoreCentral Жыл бұрын
Thanks, will do!
@letsoverengineer3 жыл бұрын
Wow, so simply - thank you for the first half of the video - it helped understanding the api a lot!
@DotNetCoreCentral3 жыл бұрын
@Michal Bilinski, thanks for watching!
@JohnDoe-xi6df2 жыл бұрын
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?
@akashkarve19913 жыл бұрын
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!!!
@DotNetCoreCentral3 жыл бұрын
@aakash karve, thanks for watching the video!
@kysondarren4603 жыл бұрын
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!
@lyricmathew80773 жыл бұрын
@Kyson Darren Instablaster :)
@kysondarren4603 жыл бұрын
@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.
@kysondarren4603 жыл бұрын
@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
@alirashidi7952 жыл бұрын
Thank you It was the best example out there in internet
@DotNetCoreCentral2 жыл бұрын
Thank you!
@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.
@avtarsashia48972 жыл бұрын
Concept cleared. Its good tutorial to understand from basics
@DotNetCoreCentral2 жыл бұрын
Thanks!
@jeganathperialwar77882 жыл бұрын
Explained well. Thanks for the wonderful lecture.
@DotNetCoreCentral2 жыл бұрын
Thanks for watching!
@christophertanghare48843 жыл бұрын
I would like to see your video on saga pattern, I am watching for it 😁
@DotNetCoreCentral3 жыл бұрын
@Christopher Tanghare, thanks! Hopefully this weekend.
@lalpj48562 жыл бұрын
Thank you😀
@oguzsisman98512 жыл бұрын
Thank you mate, very helpful
@SuperSagar553 жыл бұрын
Thank you, Can you create a video on Distributed transaction with saga orch. pattern.
@DotNetCoreCentral3 жыл бұрын
@Sagar Khairnar, thanks for watching! I will definitely do a video on the Orchestration saga pattern.
@lismai99063 жыл бұрын
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 ?
@mahendranchinnaiah75933 жыл бұрын
Great effort. Thank you so much
@DotNetCoreCentral3 жыл бұрын
@Mahendran Chinnaiah, thanks for watching as always! Appreciate your support.
@mahendranchinnaiah75933 жыл бұрын
@@DotNetCoreCentral am a big fan of your videos also eagerly waiting for your videos at Sunday 7pm cst
@DotNetCoreCentral3 жыл бұрын
@@mahendranchinnaiah7593 thanks!
@user-sv9fe5qf5h2 жыл бұрын
You help me a lot, I like the video and I will be your subscriber
@DotNetCoreCentral2 жыл бұрын
Thanks for watching!
@Gimmiyimmy3 жыл бұрын
Thank you. Very well explained
@DotNetCoreCentral3 жыл бұрын
@Atul Srivastava, thanks for watching!
@codewithkashif3 жыл бұрын
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
@DotNetCoreCentral3 жыл бұрын
@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.
@codewithkashif3 жыл бұрын
@@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?
@DotNetCoreCentral3 жыл бұрын
@@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.
@shamilgurban64393 жыл бұрын
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 :(
@DotNetCoreCentral3 жыл бұрын
@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.
@lismai99063 жыл бұрын
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
@andreicapi35353 жыл бұрын
Thank you
@DotNetCoreCentral3 жыл бұрын
@andrei capi, thanks for watching!
@Gimmiyimmy3 жыл бұрын
I need to create topic exchange but don't know the syntex. Where I can find example and tutorials for this.
@DotNetCoreCentral3 жыл бұрын
@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; }); });
@Gimmiyimmy3 жыл бұрын
Thank you so much. 🙏🙏
@DotNetCoreCentral3 жыл бұрын
@@Gimmiyimmy you are welcome sir!
@Gimmiyimmy3 жыл бұрын
@@DotNetCoreCentral Sir, Please don't call me sir. I am nothing in front of you. 😒
@DotNetCoreCentral3 жыл бұрын
@@Gimmiyimmy we are all developers my friend, we all the same :)
@sridharsathya87192 жыл бұрын
Thanks.
@DotNetCoreCentral2 жыл бұрын
@Sridhar Sathya, thanks for watching!
@user-rp9iis1en6h2 жыл бұрын
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?
@DotNetCoreCentral2 жыл бұрын
@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-rp9iis1en6h2 жыл бұрын
@@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 ?
@DotNetCoreCentral2 жыл бұрын
@@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-rp9iis1en6h2 жыл бұрын
@@DotNetCoreCentral Yes I have already seen them but couldn't understand how to configure exchange using massTransit.
@jelajahpasundanofficial3 жыл бұрын
Wow.. awesome. thank you dude. thank you so much
@DotNetCoreCentral3 жыл бұрын
@risman afyandi, thanks for watching!
@xxXAsuraXxx2 жыл бұрын
whats your preference between MassTransit and EasyNetQ?
@DotNetCoreCentral2 жыл бұрын
@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
@xxXAsuraXxx2 жыл бұрын
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.
@DotNetCoreCentral2 жыл бұрын
@@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.