Scaling Memcache at Facebook

Поділитися
Вставка
  • Опубліковано 25 січ 2025

КОМЕНТАРІ • 39

  • @gkcs
    @gkcs  3 місяці тому +11

    Folks, apologies for the background noise. I never seem to get the tech right 😅
    Thank you for watching, I am looking forward to seeing you again soon 🦸

    • @__nitinkumar__
      @__nitinkumar__ 3 місяці тому

      Hey Man, can we get a discount back on the course. I wanted to buy during Festival Sale, but missed it. It hasn't come down since then.
      Hoping in Diwali there would be some discount.

  • @aldroid5838
    @aldroid5838 3 місяці тому +12

    Thanks for the effort man….your videos are great and are of great help

    • @gkcs
      @gkcs  3 місяці тому

      Cheers!

  • @varungupta2045
    @varungupta2045 25 днів тому

    I'm an AWS engineeer and it's so interesting to see how most of the building blocks are actually used in a similar way for Amazon products. The whole mcsqueal idea is very similar to the Alf journal which is a tier 0 service at AWS.. everything from SQS to Aurora (amazon's spin on the sql db backed by an append only log) to S3 depend on Alf.

  • @piyush_chomal
    @piyush_chomal 3 місяці тому

    Great summary video Gaurav 👏
    Few pointers you may consider to cover:
    * Lease concept to mitigate stale sets and thundering herd to persistent DB
    * McRouter intermediary component to batch invalidation requests and minimise network congestion
    * Remote Marker concept to tackle stale set problem arising from eventual consistency during cross-region replication from leader to follower

    • @gkcs
      @gkcs  3 місяці тому

      Thanks Piyush!

  • @DD-ds7ui
    @DD-ds7ui 3 місяці тому

    thank you Gaurav for teaching us 🙏🏽 This is kind of knowledge is out of bound for us older and self-taught developers.

    • @gkcs
      @gkcs  3 місяці тому

      Cheers!

  • @ssashh
    @ssashh 3 місяці тому +1

    Beautifully explained, thanks a lot!

  • @satyamjha68
    @satyamjha68 3 місяці тому

    Amazing video! Loved it! Hoping to get more videos on whitepaper series soon!

  • @omartoma
    @omartoma Місяць тому

    8:49 Engineers are like everyone else [pause] ..... are lazy, that killed me
    Great video 👏🏼

    • @gkcs
      @gkcs  Місяць тому

      Cheers 😁

  • @vipulkumar6082
    @vipulkumar6082 3 місяці тому

    Thanks a lot Gaurav 🙏 It's always some value addition to my design knowledge 👌 Thanks a lot ❤

    • @gkcs
      @gkcs  3 місяці тому

      Thank you 😁

  • @sudipmandal2497
    @sudipmandal2497 2 місяці тому

    Thank you sir for this awesome video.

    • @gkcs
      @gkcs  2 місяці тому +1

      Thank you!

  • @jrajesh11
    @jrajesh11 2 місяці тому

    Great video. Could you explain about choosing cache sizes and if its use case dependent or how will it adapt to changing use cases .

  • @marksman2op
    @marksman2op 3 місяці тому +1

    What's better than Gaurav explaining a concept? Two Garurav's XD

    • @gkcs
      @gkcs  3 місяці тому

      Cheers :D

  • @blasttrash
    @blasttrash 3 місяці тому +3

    why cant they use redis? was redis not there in 2010? or was it not feasible for their usecase?

    • @gkcs
      @gkcs  3 місяці тому +4

      Redis didn't exist at that time. Memcached came out in 2003, redis took till 2009.
      The facebook team was well-versed with Memcached by 2010.

  • @tarungarg3627
    @tarungarg3627 3 місяці тому

    How can sharding be replaced by replication?

  • @sssrikanthhh
    @sssrikanthhh 3 місяці тому

    Thank you very much bro❤

  • @singh.aadarsh
    @singh.aadarsh 3 місяці тому

    Amazing paper 😮 31:40

  • @hernan.cortes
    @hernan.cortes 3 місяці тому

    Great content!! Thank you!

    • @gkcs
      @gkcs  3 місяці тому

      Thank you!

  • @gouravprasad737
    @gouravprasad737 3 місяці тому

    wht if they had used configuration provider like kafka for the sharding approach? obvio it was not available then... just a thought...

    • @gkcs
      @gkcs  3 місяці тому

      I don't see how that would help. Could you elaborate on the thought?

  • @abhis3kh
    @abhis3kh 3 місяці тому

    So, in replication - we will have replication of whole Facebook database in a cache (muiltple times)? Can you please clarify

    • @gkcs
      @gkcs  3 місяці тому +1

      We will have as much data from the DB as we can store in-memory.

    • @abhis3kh
      @abhis3kh 2 місяці тому

      @@gkcs Incase we don't have that in Cache - we will get it via DB query and get it updated in Cache ?

  • @dipanshukumar3733
    @dipanshukumar3733 3 місяці тому

    ❤ you brother.

  • @karan-oh5th
    @karan-oh5th 3 місяці тому

    In final section (data consistency ) at 29:30 , when we are using Bin Logs , how do they resolve data conflicts b/w ind server and us server ?
    does McSQUEAL handle that or its just rollback ?

    • @gkcs
      @gkcs  3 місяці тому +1

      They wait for the problem to resolve itself. Eventual consistency.

  • @mayankrathore7558
    @mayankrathore7558 3 місяці тому

    Most popular question these days,
    Design distributed counter where we can see burst of write on counter,
    multiple solutions
    1. range distribution ->
    1.1. Once range distributor exhausted all ranges and some range are available on other app server how to borrow order id from neighbor app servers.
    1.2. Commit of order since we want atomicity as well.
    2. Sharding
    It is Good topic to cover :)

  • @shivambansal5572
    @shivambansal5572 25 днів тому

    8:51 : shahrukh khan vibes

  • @rishiraj2548
    @rishiraj2548 3 місяці тому

    🙂👍🏻💯

  • @shivambansal5572
    @shivambansal5572 25 днів тому

    Replication makes more sense than sharding 🤣 What?
    How long will you vertically scale each replica? There has to be sharding, replication can't replace it.