Amazon ElastiCache

👨💻 AWS Cloud Engineer | Around 6 years of Corporate Experience | Driving Innovation in Cloud Solutions 🔧 Day-to-Day Tasks: Specialize in creating AWS infrastructure for Migration Projects. Leveraging services such as S3, SNS, SQS, IAM, Lambda, System Manager, Kinesis, OpenSearch, Cognito, Storage Gateway, Cloud Watch, API Gateway, AWS Event Scheduler, Secret Manager, ECS, Application Load Balancer, VPC among others. Additionally, I excel in crafting Splunk Dashboards and implementing alerting mechanisms for Cloud Watch logs to monitor failures. My approach involves constructing AWS infrastructure using the Serverless framework and Cloud Formation templates, while automating tasks through Boto3 (Python Scripting) Lambdas. 🎯 Passion: I am deeply passionate about continuously learning new technologies and eagerly anticipate the transformative impact of cloud computing on the tech landscape. 📧 Connect: Feel free to reach out to me at awslearningoals@gmail.com. Let's connect and explore potential collaborations! https://www.linkedin.com/in/rastogiutkarsh/
Amazon Cloud Concepts Learning --> Day22
Amazon ElastiCache

Setting up, maintaining, and growing distributed in-memory cache systems in the AWS Cloud is made simple with Amazon ElastiCache.
The in-memory cache it offers is highly efficient, scalable, and reasonably priced. Additionally, it eliminates the difficulties involved in setting up and maintaining a distributed cache system.
A fully managed in-memory caching solution, ElastiCache is designed to handle real-time use cases requiring high throughput and ultrafast speed.
Best for scenarios where the DB load is based on Online Analytics Processing (OLAP) transactions.
ElastiCache is commonly utilized as a cache to improve database or application speed.
Used as primary data store for applications like session stores, streaming, gaming leaderboards, and API rate limitation, which do not require durability.
The goal of ElastiCache is to reduce the additional complexity of administering your inmemory caching systems for Redis and Memcached engines.
Scales your reads/writes based on changing business needs.
ElastiCache engines come in two different varieties:
- Memcached
An intuitive, high-performance in-memory data store.
Offers a mature, scalable, open-source solution for delivering sub-millisecond response times, which makes it useful as a cache or a non-durable session store.
Capable of running big nodes with several cores and threads and able to cache items like databases.
- Redis
Redis Stands for Remote Dictionary Server is an open-source, quick data structure storage.
Used as a distributed in-memory data store used as a database, cache, streaming engine, and message broke.
Offers backup/restore, automated failover, cross-AZ (HA), encryption, and master/slave replication.
Amazon ElastiCache Features
- Fully Managed
Automates common administrative tasks required to operate a distributed in-memory key-value environment.
You can quickly add a caching or in memory layer to your application design.
Automatically finds and replaces failing nodes in a cluster.
- Workload Scalability
To accommodate write traffic, ElastiCache for Redis also allows the cluster to autoscale by changing the number of shards.
It can also increase or decrease the number of read replicas to handle read traffic.
Pre-defined cloud-watch metrics are continuously checked and trigger the autoscaling procedure as needed.
Horizontal and vertical scaling capabilities exits.
- Extreme Performance
- ElastiCache improves the performance of applications by helping you retrieve information from a fast, managed, in-memory system, instead of relying entirely on slower disk-based databases.
- Secure and Reliable
- ElastiCache is a highly secure service with features such as network isolation, TLS, encryption at rest or in transit, multi-AZ, and automatic failover.
Amazon ElastiCache Use Cases
Web Session Store - In cases with load-balanced web servers, store web session information in Redis so if a server is lost, the session info is not lost, and another web server can pick it up.
Database Caching - Use Memcached in front of AWS RDS to cache popular queries to offload work from RDS and return results faster to users
Leaderboards - Use Redis to provide a live leaderboard for millions of users of your mobile app
Comparison between Memcached & Redis
Some common feature comparison between two engines
| Memcached | Redis |
| Multi-Threaded | -- |
| Ephemeral persistence | Semi-durable persistence |
| Simple data structures | Complex data structures |
| -- | Backup and restore |
Additional Resources
https://aws.amazon.com/elasticache/faqs/
https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/WhatIs.html
Note: All Images are from AWS Official Document
"Thank you for reading! If you found this blog helpful, don't forget to subscribe and follow for more insightful content. Your support keeps me motivated to bring you valuable insights. Stay updated and never miss out on our latest posts. Feel free to leave comments or suggestions for future topics. Happy learning!"
https://awslearner.hashnode.dev/amazon-web-services-via-category




