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





Launch An EC2 Instance





Create An Elasticache




Picture showing the ElasticCache in the search result




Picture showing the elasticcache home screen in AWS console




Picture showing selecting the Cluster engine as Redis




Picture showing entering the redis settings




Picture showing selecting the subnet




Picture showing the Create button for creating the ElasticCache




Picture showing the ElasticCache list page



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



Test The Elasticache




set <keyname><value>
get <keyname>


Picture showing the output of elasticcache in AWS



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