Distributed Caching for System Design Interviews

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 พ.ย. 2024

ความคิดเห็น • 5

  • @SUNNofODIN
    @SUNNofODIN ปีที่แล้ว +3

    Can't get enough of these videos. Thanks for taking the time to make them.

  • @aaAaa-rq2cj
    @aaAaa-rq2cj ปีที่แล้ว

    Which software did you use for animation

  • @conphident4
    @conphident4 ปีที่แล้ว +1

    What do you mean by distributed in-memory cache? An in-memory cache is by definition within the specific node - how can that be distributed?

    • @ByteMonk
      @ByteMonk  ปีที่แล้ว

      You are correct that an in-memory cache is typically implemented within a single node. However, a distributed in-memory cache is a different type of cache that uses the combines memory of multiple nodes to store cached data.
      An in-memory cache can be distributed by using a cluster of servers. Each server in the cluster stores a portion of the cached data. When an application needs to access a cached item, it sends a request to the cluster. The cluster then routes the request to the server that stores the requested item. The server then returns the item to the application.
      There are a number of different ways to implement a distributed in-memory cache cluster. One common approach I showed a hash ring. A hash ring is a data structure that maps keys to servers. When a request is received by the cluster, the cluster uses the hash ring to determine which server is responsible for storing the requested item.
      You may also looking into leader-follower architecture

  • @Dhanush-m4f
    @Dhanush-m4f ปีที่แล้ว

    Centaralise cache
    Distributed cache