Dealing with Stale Reads - Make Your App Better | Systems Design 0 to 1 with Ex-Google SWE

Sdílet
Vložit
  • čas přidán 24. 07. 2024
  • Eventually is a loaded word - eventually I'm going to start selling feet pics though for sure.
  • Věda a technologie

Komentáře • 18

  • @bourneidentity007
    @bourneidentity007 Před 2 měsíci +1

    @jordanhasnolife5163 - For consistent Prefix Read problem, how second person will see the question, if there is replication lag ? reading directly from leader?

    • @jordanhasnolife5163
      @jordanhasnolife5163  Před 2 měsíci

      Yeah, it's possible there are multiple followers for example, and person 2 reads from a more up to date follower on partition 1 than person 3 does.

  • @cansozeri78
    @cansozeri78 Před rokem +1

    For reading your own writes solution, we have to store the messageID with timestamp on somewhere else for example on redis and after checking elapsed time we should decide to use leader or replica to read right ?? Can you clarify ?

    • @jordanhasnolife5163
      @jordanhasnolife5163  Před rokem +2

      I think the easiest way of doing this would be to probably be to keep that information in memory on a load balancer between the application servers and databases. Probably a hashmap or something like that.

    • @cansozeri78
      @cansozeri78 Před rokem +1

      ​@@jordanhasnolife5163 Maybe we can use duration based stickiness on aws alb with a target group.

    • @jordanhasnolife5163
      @jordanhasnolife5163  Před rokem

      @@cansozeri78 Wasn't even aware that existed but sounds pretty reasonable to me!

    • @bourneidentity007
      @bourneidentity007 Před 2 měsíci

      @@jordanhasnolife5163 & @cansozeri78 wondering how stickiness in ALB will help here. I don't know how usually leader is set up, but in our org, we set up leader only for write and don't route any read requests to leader. However if we include leader in to the reader group, stickiness will work. Any comments ?

  • @treediegames7199
    @treediegames7199 Před rokem +2

    I rarely read description but when i read its always some weird shit wtf

  • @varshard0
    @varshard0 Před 6 měsíci +2

    When is Only feet?

  • @bokistotel
    @bokistotel Před 10 dny +1

    7:11 isn't this sharding ?

    • @jordanhasnolife5163
      @jordanhasnolife5163  Před 10 dny

      Yes

    • @bokistotel
      @bokistotel Před 10 dny

      @@jordanhasnolife5163 btw thanks for doing these videos dude. Plus your sense of humor si great, USA hoes got no choice but to love you

  • @vivekverma9500
    @vivekverma9500 Před rokem +1

    Hi, can you please add references for videos

  • @cc-to2jn
    @cc-to2jn Před rokem +1

    have not watched in a while and ur in Australia, wtf