Skip to main content

Command Palette

Search for a command to run...

Amazon ElastiCache

Published
4 min read
Amazon ElastiCache
U

👨‍💻 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

The diagram shows the key features and benefits of ElastiCache. Three sections display from left to right.  The top icon in the first section is titled “Real-time workloads” and says “Accelerate application and database performance.” An arrow points to the second section. The second icon in the first section is titled “Ephemeral data store” and lists four bullet points. These bullet points are: “Session stores,” “Gaming leaderboards,” “Media streaming,” and “Analytic data stores.” An arrow points to the second section.  The second section has the ElastiCache service icon with the title “Amazon ElastiCache” and says “Caching service built to deliver real-time performance for modern applications.” Encapsulated in the box to the right is the header “Key service benefits” and six smaller boxes, each highlight a key service benefit. These benefits are: “Cost Optimization,” “Microsecond speed,” “Fully managed,” “High availability,” “Security and compliance,” and “Open source compatibility (Redis and Memcached).” An arrow points to the third section.  The third section is titled “Integrate with other AWS services” and shows four smaller boxes, each highlighting an AWS service. Starting from top to bottom, the services listed are: “Amazon CloudWatch,” “Amazon SNS,” “Amazon KMS,” “Amazon S3,” “Amazon Redshift,” “Amazon RDS,” “Amazon DynamoDB,” and “Amazon Neptune.”

  • 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:

  1. 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.

  1. 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

  1. 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.

  1. 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.

  1. 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.
  1. 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

MemcachedRedis
Multi-Threaded--
Ephemeral persistenceSemi-durable persistence
Simple data structuresComplex 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

More from this blog

AWS Learner

39 posts