Core Concepts of Amazon ElastiCache
ElastiCache is a crucial AWS service for high-performance applications, providing in-memory data storage for rapid access.
Amazon ElastiCache is a fully managed, in-memory caching service designed for ultra-fast data access with sub-millisecond latency. Its purpose is to offload primary databases, reduce latency, improve application performance, externalize user sessions, and convert applications to stateless ones. AWS handles provisioning, patching, monitoring, and backups for this service, which offers a 99.99% availability SLA (source_page 1, 4).
ElastiCache is a crucial AWS service for high-performance applications, providing in-memory data storage for rapid access.
ElastiCache offers two primary deployment models to suit different workload needs and operational preferences.
Choose between fine-grained control or fully automated management.
Amazon ElastiCache supports two open-source engines, Redis and Memcached, each with distinct features and suitable for different use cases.
A direct comparison of Redis and Memcached capabilities.
ElastiCache is used in various scenarios to enhance application performance and scalability, employing different caching patterns.
ElastiCache can be updated through various mechanisms to ensure data freshness.
ElastiCache provides robust security features to protect data and control access within the AWS environment.
This section outlines the steps to create a node-based Redis OSS cluster using the AWS Management Console.
A step-by-step guide to setting up a Redis cluster, covering engine selection, cluster configuration, networking, security, and backup options.
Initiates the service interaction.
Redis OSS Cache is recommended over Memcached for its features.
Select 'Cluster create' to review all available options, rather than 'easy create' or 'restore from backup'.
Disabled for demo (uses single AZ); enabling provides multiple AZs.
Name and description for identification.
Name: CS ElastiCache demo
AWS Cloud for location. Multi-AZ is enabled by default with auto-failover for high availability.
Latest recommended version (e.g., 7.1) for features like IAM/Redis AUTH.
Engine Version: 7.1
Node type based on memory (RAM more critical than CPU for caches). Replicas (0-5) for read scaling and HA.
Node Type: cache.m5.large; Number of Replicas: 0-5
IPv4 is the default.
Connectivity: IPv4
Create new or use existing subnet group, select existing VPC.
No preference for demo; recommend matching production application AZ for production.
Encryption at Rest and in Transit are enabled by default.
Choose Redis AUTH (default user access, user group ACL) or 'no access control' for simplicity in demo.
Automated backup (retention 1-35 days), specify backup and maintenance windows.
Automated backup (retention 1-35 days)
Option to enable logs like Slow Log for monitoring.
Engine Logs: Slow Log
Initiates the cluster provisioning. Note that ElastiCache incurs charges.