Saga Design Pattern for managing Distributed Transactions (An Introduction)

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ต.ค. 2024

ความคิดเห็น • 24

  • @shreyasjejurkar1233
    @shreyasjejurkar1233 4 ปีที่แล้ว +6

    Great video as always! Just wanted to point out, that in choreography patten, event based communication is recommended and not RPC based or Http based communication between microservices!
    One of the advantage of event based communication is that the microservices who raised the event does not need to know who are listening to that event.
    So let's say we added one more of microservice in transaction, so in that one just need to create a event handler for the event that previous microservices fires after operation complete! So that this newly added microservice can do his work after that get fires off!
    As you can see older microservices does not know about this newly added microservice, but still it works.
    But if we try to do same in orchestra based patten then, if add a new microservice the orchestra logic needs to update so that it will call new microservice somewhere in transaction, so it's not extensible without changing! And also for orchestra based microservices, he needs to know and maintain address of all the microservices and the data that it's going to call in given transaction. So if update some microservices input output then that changed needs to be done in orchestra as well!

    • @DotNetCoreCentral
      @DotNetCoreCentral  4 ปีที่แล้ว +3

      @Shreyas Jejurkar thank you for your valuable comment! Valid points!
      I did implement Choreography in production, using RabbitMQ as a broker, and as I mentioned in this video, the problem I faced is when the number of microservices increases, not so much in the code, but to maintain overall picture so that someone joining the team in future does not have a hard time understanding the overall workflow.
      Now I am implementing the Orchestrator pattern since I have a mix of Queue-based and HTTP-based services, and I can see it's easier to grasp the communication pattern for someone joining the team fresh.

    • @shreyasjejurkar1233
      @shreyasjejurkar1233 4 ปีที่แล้ว

      @@DotNetCoreCentral ohhh OK. I see. 🙌

    • @DotNetCoreCentral
      @DotNetCoreCentral  4 ปีที่แล้ว

      @@shreyasjejurkar1233 thanks!

  • @kumararun8337
    @kumararun8337 8 หลายเดือนก่อน

    clear, simple and great explanation ❤

  • @majormartintibor
    @majormartintibor ปีที่แล้ว

    Just found this video, very helpful, nicely explained!

  • @MrAmit1988
    @MrAmit1988 3 ปีที่แล้ว

    Crisp and clear video of the topic. SIr could you please share learning path of your videos as well like from which video we should start and so on.

    • @DotNetCoreCentral
      @DotNetCoreCentral  3 ปีที่แล้ว

      @amit gupta, thanks for watching. And thanks for your valuable feedback. I will create one and share it.

  • @cheequsharma7391
    @cheequsharma7391 ปีที่แล้ว

    Thanks for the explanation. Its excelent.

  • @chessmaster856
    @chessmaster856 5 หลายเดือนก่อน

    Does it work? Or just fun stuff😊

  • @SenthilKumaran4u
    @SenthilKumaran4u 3 ปีที่แล้ว

    Good and informative as usual, thanks a lot.

  • @mahendranchinnaiah7593
    @mahendranchinnaiah7593 4 ปีที่แล้ว

    Great job. Thank you so much

    • @DotNetCoreCentral
      @DotNetCoreCentral  4 ปีที่แล้ว

      @Mahendran Chinnaiah, thanks so much for watching!

  • @pratapjavasingh3239
    @pratapjavasingh3239 3 ปีที่แล้ว

    Nice explanation but I thought u are atleast take the small servises and then u can implement distribution transaction with the concept of Kafka brokers and orchestration principale except only theory 👍hope may be ur next video consider my opinion

    • @DotNetCoreCentral
      @DotNetCoreCentral  3 ปีที่แล้ว +1

      @pratapjava singh, thanks for watching the video. I am sorry but I am not able to understand your request here, if you can elaborate further it will help me.

    • @pratapjavasingh3239
      @pratapjavasingh3239 3 ปีที่แล้ว

      @@DotNetCoreCentralactually I thought u are the java developer and I have never seen ur channel name randomly I am search on the TH-cam saga design patterns then I got ur videos so whatever i am commenting in ur videos regrading microservies based distribution transaction concept wd the help saga design patterns and Apache Kafka ! and this design patterns give u the facilities to developer u can implement transaction in two principal first' is that chrographical and other one is that orchestration and both has own pro and cons? but am expecting from u except theory take example and implement own ur system then got more clarity who is watch ur vlog like payment and stock then u can implement distribution transaction through saga design patterns

    • @DotNetCoreCentral
      @DotNetCoreCentral  3 ปีที่แล้ว

      @@pratapjavasingh3239 ohh, I have a video of implementing saga choreography pattern here: th-cam.com/video/Mau9hxONzZ8/w-d-xo.html

  • @elifozsoy8438
    @elifozsoy8438 2 ปีที่แล้ว

    Hello, thank you for your presentation, it was a very nice video. Could you please share your presentation as a file? It is difficult to understand by listening because of the language difference. Thank you again, have a nice day :)