HA vs Fault Tolerance | How Swiggy handles Faults in Microservices? | Tech Primers

Поділитися
Вставка
  • Опубліковано 4 лис 2024

КОМЕНТАРІ • 14

  • @sainathmandavilli6538
    @sainathmandavilli6538 Рік тому +1

    U r god, this is my beginner videos of design, will watch more off from now

  • @fgraf555
    @fgraf555 Рік тому +1

    Thanks!, great content!

  • @pavanim6258
    @pavanim6258 Рік тому

    Hi ,Thanks for the yet another wonderful tutorial. Have a question regarding system design for building survey to upvote/downvote with random list of 10 questions to billions of users? Could you please suggest whats the best way for this?

    • @TechPrimers
      @TechPrimers  Рік тому

      Don’t think i can explain it in comments. Will try to do a video for the same

    • @pavanim6258
      @pavanim6258 Рік тому

      @@TechPrimers Thank u so much will be waiting for it :)

  • @faizul_official
    @faizul_official Рік тому +1

    Hey bro awesome explanation.
    Thanks bro.
    I have a question on payment processing related
    in some websites like bookmyshow or redbus after we selected a seat
    they wait for 5 mins or 10 mins to get payment done.
    in that meantime they really lock those seats and how they handle
    double booking and race conditions. This is lot of time to wait.
    I thought this way like they let them happening double booking and
    track who completed the payment they will assign seats and remove
    failed payment or drop whoever not completed that payment.

    • @TechPrimers
      @TechPrimers  Рік тому

      Correct Faizul. This is to handle race condition and the 5/10 min is the end to end timeout for payment. Since payment gateways are external to the booking site they introduce this timeout. Another one to look at is IRCTC

    • @faizul_official
      @faizul_official Рік тому

      @@TechPrimers
      Thanks for your reply.
      So in this way again what if two users got paid for same seats and who will they assign to that seat.
      Are they having any reservation token generated with sequentially and decide based on that even payment
      done in same time?
      Just curious to know avoid double booking in whatever way 😀
      After you mentioned IRCTC I would like share my bad user experience. Most of time
      I loose tatkal tickets and money. But they will reprocess in 1 week.

    • @Infotv55
      @Infotv55 Рік тому

      there can be flag in between done and vacant that gives chance of preventing other users taking same seat

  • @JaNaMSoNi
    @JaNaMSoNi Рік тому +1

    Finally after a month 😉

  • @TheWalrus_45
    @TheWalrus_45 Рік тому

    Seems like the fallback options for payment would bypass some of the payment security?

    • @TechPrimers
      @TechPrimers  Рік тому

      No Paul. Cash on Delivery uses OTP (one time password) with mobile number. So don’t think there is any short cut there.

    • @TheWalrus_45
      @TheWalrus_45 Рік тому

      @@TechPrimers not a good idea to have delivery people with both food and cash on them.