Potential problems of database and solution
Cache layer
Problems with cache data in the application server machine
The size of the cache is limited to the memory of each
machine.
Distributing the load means that the same data will be
cached in multiple machines.
Advantages in sharing cache among multiple machines
Advantages:
* Much larger cache size than caching only in the local memory.
* Pricing: cache access is cheaper than the database access at scale.
Advantages in sharing cache among multiple machines
Disadvantages:
* Slower when compared to access to the local memory.
Common uses of caches