Cachine 1682600243
Cachine 1682600243
Mohammad Iqbal
Content
• What is Caching?
• Why caching?
• Architecture
• Type of Caching
• In Memory Cache
• Distributed Cache
• Redis
• Redis stand alone
• Redis Sentinel
• Redis Cluster
What is Caching?
In-Memory Cache
● Redis is written in C.
2. Redis Master-Slave
3. Redis Sentinel
4. Redis Cluster
1. Redis stand alone
Architecture Better visibility to the users. Data sharding, maintains happens internally
Availability Availability is high here as we the system can stand totalNumberOfNodes-1 Even if we have 6 nodes in our system, if one master slave pair goes
failures. down we will lose a lot of data. To Erase it we will require more number
Additionally as we have Sentinel nodes to monitor the nodes and decision of slave nodes per master. Increase cost.
making, makes it more available.
Cost Cheaper as you can start with only 2 nodes. Expensive as it requires min 6 machines.
Scalability We can vertically scale by increasing the size of master node but we have Scalability is great here as we can add as many master as we want.
a certain limitation to that as well.
Data Sharding No data sharding, as each node (master or slave) have the complete data Data is sharded among number of partitions created or number
copy. of master slave groups.