Articles → AWS → Elasticache In AWS

Elasticache In AWS






Purpose





Elasticache Engines




  1. Redis
  2. Memcache

Steps Of Creating An Elastic Cache




  1. Enable port 6379 in the security group
  2. Launch an EC2 instance
  3. Create an elasticache
  4. Install Redis agent on the EC2 instance
  5. Test the elasticache



Enable Port 6379 In The Security Group




Picture showing adding a rule for port number 6379  in the security group
Click to Enlarge




Launch An EC2 Instance





Create An Elasticache




Picture showing the ElasticCache in the search result
Click to Enlarge



Picture showing the elasticcache home screen in AWS console
Click to Enlarge



Picture showing selecting the Cluster engine as Redis
Click to Enlarge



Picture showing entering the redis settings
Click to Enlarge



Picture showing selecting the subnet
Click to Enlarge



Picture showing the Create button for creating the ElasticCache
Click to Enlarge



Picture showing the ElasticCache list page
Click to Enlarge


Install Redis Agent On The EC2 Instance






redis-cli -c -h myfirstesnode.lqatbt.ng.0001.use2.cache.amazonaws.com -p 6379




Picture showing the primary endpoint of the elasticcache
Click to Enlarge


Test The Elasticache




set <keyname><value>
get <keyname>


Picture showing the output of elasticcache in AWS
Click to Enlarge


Difference Between Different Cluster Engine


FeatureMemcacheRedis (Cluster Mode Disabled)Redis (Cluster Mode Enabled)
Data persistenceNoYesYes
Data typesSimpleComplexComplex
Data partitioning YesNoYes
EncryptionNoYesYes
High Availability (Replication)NoYesYes
Multi-AzYesYes, with auto failoverYes, with auto failover
MultithreadedYesNoNo
Backup and restoreNoYesYes



Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, November 9, 2021
 
Updated On  -  Monday, August 22, 2022

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250