Articles → AWS → Elasticache In AWS
Elasticache In AWS
Purpose
Elasticache Engines
- Redis
- Memcache
Steps Of Creating An Elastic Cache
- Enable port 6379 in the security group
- Launch an EC2 instance
- Create an elasticache
- Install Redis agent on the EC2 instance
- Test the elasticache
Enable Port 6379 In The Security Group
Click to Enlarge
Launch An EC2 Instance
Create An Elasticache
Click to Enlarge
Click to Enlarge
Click to Enlarge
Click to Enlarge
Click to Enlarge
Click to Enlarge
Click to Enlarge
Install Redis Agent On The EC2 Instance
redis-cli -c -h myfirstesnode.lqatbt.ng.0001.use2.cache.amazonaws.com -p 6379
Click to Enlarge
Test The Elasticache
set <keyname><value>
get <keyname>
Click to Enlarge
Difference Between Different Cluster Engine
Feature | Memcache | Redis (Cluster Mode Disabled) | Redis (Cluster Mode Enabled) |
---|
Data persistence | No | Yes | Yes |
Data types | Simple | Complex | Complex |
Data partitioning | Yes | No | Yes |
Encryption | No | Yes | Yes |
High Availability (Replication) | No | Yes | Yes |
Multi-Az | Yes | Yes, with auto failover | Yes, with auto failover |
Multithreaded | Yes | No | No |
Backup and restore | No | Yes | Yes |