Microservices Architecture Patterns | SAGA Orchestration Design Pattern | Distributed Transaction

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

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

  • @shariefrana
    @shariefrana Год назад +2

    Great work, few observations here.
    1. You can create a common module to have all dto classes and reuse them.
    2. good to capture order quantity for a specific product for inventory availability check and calculate the overall amount.

    • @JavaTechSolutions
      @JavaTechSolutions  Год назад +1

      Thank you for pointing those things. I created this video just to understand the concept. Those are obviously nice to have. Thank You

  • @rupeshjha4717
    @rupeshjha4717 Год назад +1

    Great content!
    Please keep on posting these videos!
    Subscribed

  • @cesarruiz8222
    @cesarruiz8222 Год назад +2

    Great !! Thanks

  • @jampanisuresh4457
    @jampanisuresh4457 5 месяцев назад

    Really great content, appreciate it

  • @JavaTechSolutions
    @JavaTechSolutions  Год назад

    Source code link updated. Please get it from description section

  • @ricardoor4397
    @ricardoor4397 10 месяцев назад

    Thank you! Would love to see a spring batch app with orchestration if you have time.

  • @hendisantika
    @hendisantika Год назад +2

    Nice video. Is that right github link? cause I don't see the service like on the video

    • @JavaTechSolutions
      @JavaTechSolutions  Год назад

      I will check the link and update accordingly

    • @hendisantika
      @hendisantika Год назад

      @@JavaTechSolutionsAny update?

    • @JavaTechSolutions
      @JavaTechSolutions  Год назад

      @@hendisantika sorry to not updating... Actually I am sick from last 3 days.. once I will recovered I will update the link

    • @hendisantika
      @hendisantika Год назад

      OIC. Get well soon@@JavaTechSolutions

    • @JavaTechSolutions
      @JavaTechSolutions  Год назад

      Updated

  • @gonzalop6230
    @gonzalop6230 Год назад +1

    If the sending to Kafka fails, how do you maintain the transaction between the database and Kafka in the OrderService::createOrder?

    • @JavaTechSolutions
      @JavaTechSolutions  Год назад

      If database failed then data will be not inserted then in the next MS not able to get the data. So the order will re try. if Kafka fail then next MS not able to pick the record from db so the order status will not changed. So retry will be trigger.

    • @gonzalop6230
      @gonzalop6230 Год назад

      @@JavaTechSolutions But, there is no distributed transaction between Kafka and the database, so if an error occurs, there will be cases where either it has been persisted in the database and not sent to Kafka, or it has been sent to Kafka and not saved in the database

    • @JavaTechSolutions
      @JavaTechSolutions  Год назад

      @@gonzalop6230 yes .. that I was saying...

    • @gonzalop6230
      @gonzalop6230 Год назад

      @@JavaTechSolutions IMHO, i think it's a flawed design because it leaves the door open for the arrival of an order operation, and yet, the saga has not recorded that step. Until the Kafka library supports participation in 2PC (KIP-939), it would be necessary to implement a transactional outbox. Even in my opinion, if they were to implement it, it should be designed that way.

    • @JavaTechSolutions
      @JavaTechSolutions  Год назад

      That can be managed in other way... Like by retrying transaction after certain time

  • @Devesh-bx1pr
    @Devesh-bx1pr Год назад +1

    Hi Thanks for the great content. I dont think you have the correct git link for the project. could you please provide the project link

  • @asahoo100
    @asahoo100 Год назад +1

    Hi Thanks for the great content, just a request if you can make similar vids on Spring web flux would be helpful!

  • @MrRahulmodi
    @MrRahulmodi 3 месяца назад +2

    You could have explained more about orchestration service instead of spending more time on other services. Also, instead of typing the complete code you could have the code already and just walk through the code.

  • @tendaikawadza4492
    @tendaikawadza4492 Год назад

    how do we send user details to this system, knowing who is doing this request

  • @tendaikawadza4492
    @tendaikawadza4492 Год назад +1

    thank u

  • @mahdishirinabadi2202
    @mahdishirinabadi2202 Год назад

    Hi, thx for good vide , but Github link is different from video code! can you update it?

  • @RaviYadav-cx2pb
    @RaviYadav-cx2pb Год назад

    Can you a video on spring security with jwt token and password should be encrypted in the database and also also user registration successfully then a message send to user registered email.... The registration field are username, email id and password... Please urgently need it .. please

    • @JavaTechSolutions
      @JavaTechSolutions  Год назад

      Already I provided jwt token related video. Please check it out

    • @RaviYadav-cx2pb
      @RaviYadav-cx2pb Год назад

      @@JavaTechSolutions can you please share the link please

  • @Vithal_Nivargi
    @Vithal_Nivargi Год назад +1

    Hi sir,
    I gone through the choreography approach was really good.
    But this video contents are good but explanation is less
    Very Hard to understand for beginners.
    Thanks.

    • @JavaTechSolutions
      @JavaTechSolutions  Год назад +1

      Thank you for your concern.. I will try to put more details in my next tutorial..

  • @saurabhsaraswat4362
    @saurabhsaraswat4362 Год назад

    video is good but the main saga orchestration service is not explained well.

    • @JavaTechSolutions
      @JavaTechSolutions  Год назад

      Thank you for your concern... In my next one of my video I will try to explain on this

  • @puneetshrivastava8032
    @puneetshrivastava8032 9 месяцев назад +1

    Sorry but the explanation here wasn't the great one. Just a suggestion try using some diagram or flow diagram to explain stuff before writing code.for that module.

  • @tendaikawadza4492
    @tendaikawadza4492 Год назад

    i have app which let information to the next person

  • @tendaikawadza4492
    @tendaikawadza4492 Год назад

    can i have your direct contact