Cache
It's a high-speed data storage layer. Stores a subset of data. Increases data retrieval performance. Reduces the need to access the underlying storage layer.
Amazon DynamoDB Accelerator
In memory cache for Dynamo DB . Integrated with DynamoDB .
Side Cache
The DAX cache above is integrated with DynamoDB. We can also have a separate cache that works in the following configuration.
Application --> Cache
Read/ Write
--> Database
Elastic cache
It's a side cache that is fully managed.
Redis MemCached
250 nodes 20 nodes
Redis
Advanced Data structures
Pub/Sub Messaging
Multi AZ deployment
Persistence
Memcached
Can scale horizontally
Multi-threaded performance
Lazy Loading
1) Look in cache
2) Miss then read from db
3) Write to cache
Write through
1) Write to DB
2) Write to Cache