Please enable JavaScript.
Coggle requires JavaScript to display documents.
ElastiCache - Coggle Diagram
ElastiCache
Cache Security
Features:
- Do not support IAM authentication
- IAM policies on ElastiCache are only used for AWS API-level security
Redis AUTH (image)
Features:
- Can set token when I create a Regis cluster
- Extra level of security for my cache on top of security groups
- Supports SSL in-flight encryption
-
-
Solution architecture
DB Cache (image)
Steps:
- Applications queries ElastiCache
- Fetch from RDS if not available, get from RDS and
- Store result in ElastiCache
-
Cache must have an invalidation strategy to make sure only the most current data is used in ElastiCache
-
Redis
Features:
- Multi-AZ with Auto-failover
- Read Replicas to scale reads and have High Availability
- Data Durability using Append Only File (AOF) persistence
- Backup and restore
- Support for Clustering
Use cases:
- Gaming Real-time Leaderboards
- Redis Sorted Sets: Each time new element added, it is ranked in real time and added in correct order (image)
Memcached
Features:
- Sharding: Multi-node for partitioning of data
- No replication and High Availability
- Non persistent
- No backup and restore
- Multi-threaded architecture
Features:
- Managed service
- In-memory data store with high performance, low latency
- ElastiCache works as an in-memory data store and cache to support the most demanding applications requiring sub-millisecond response times
Pros:
- DB cache: Reduce load off from DB for read intensive workloads
- User Session Store: Helps to make my application stateless:
- AWS takes care of OS maintenance/ patching, optimizations, setup, configuration, monitoring, failure recovery and backups
Cons:
- Involves heavy application code changes
-