Before we discuss Amazon ElastiCache, let's understand what an in-memory cache is, and where it can be used.
It is advantageous to have a cost-effective, separate, and dedicated mechanism, just to store and access frequently used data that supports redundancy and scalability without any downtime. It not only helps to achieve minimal latency for the end user, but also reduces the load on data storage.
The implementation of in-memory caching in the solution architecture is shown in Figure 27.1. In the diagram, in-memory caching sits in between the actual data store, such as the database or static content (S3). The end user initiates a web client/application request to the server through the load balancer. The web/app server routes the data read request to the cache cluster. If the data is already cached, the request response is sent back. If the...