ElastiCache
## Overview
ElastiCache is Amazon’s offering for managed Redis or Memcached.
Caches are in-memory dbs with high perf and low latency. They allow quick access to data without having to reach the DB disk.
This helps:
- Latency
- Reduce load on DB resources
- Makes application stateless
AWS will take care of maintenance, patching, optimisations, monitoring, failure etc for you
Architecture
Apps query the cache, but if it misses, then it will read from DB.
Caches should have an invalidation strategy
Use session store
Another good use case is for a session store for a user’s session: