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
Can't get enough of these videos. Thanks for taking the time to make them.
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?
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
Which software did you use for animation
Centaralise cache
Distributed cache