Lesson 53 - Distributed Transactions Using Sagas

Поделиться
HTML-код
  • Опубликовано: 4 янв 2025

Комментарии • 7

  • @JoeALVESEmmanuel
    @JoeALVESEmmanuel 3 года назад +1

    Less than 10mn for a fuuuuuuuul understand of SAGA ! Thank you Sir !

  • @rodrigomattioda12345
    @rodrigomattioda12345 3 года назад

    Your videos are helping me alot! Thanks!!!

  • @mahdi5796
    @mahdi5796 8 месяцев назад

    Thank you. Can you please explain in which scenarios would you use two-phase commit vs sagas? Actually, I've never seen you mentioning 2PC. May I ask why?

    • @markrichards5014
      @markrichards5014  8 месяцев назад +2

      2PC was very popular back in the day, but fell out of favor as more and more resources stopped supporting it. Also, as we move to more highly distributed architectures like Microservices or EDA, it stops being very effective; locking and coordinating remote resources is not a good idea, as I've found through experience.

  • @vishnumv5
    @vishnumv5 3 года назад

    In a saga which acts as more of a state machine how will you be giving a status to the client synchronously? Will it be the created state or the final state?.. And how to handle inconsistent states when failures happen??

    • @markrichards5014
      @markrichards5014  3 года назад +5

      Great questions, and too long of an answer for a comments reply. I'll do an upcoming lesson on this. Neal Ford and I in our upcoming book "Software Architecture: The Hard Parts" (Nov 2021) have identified 8 possible Saga situations that answer your question regarding communicating state as well as handling inconsistent states. Stay tuned!

  • @easyappscompany
    @easyappscompany 5 лет назад

    Best Regards From Mexico City. Manuel Silva.