Magento ElastiCache Magento ElastiCache

Using ElastiCache, Amazon’s fully managed, in-memory caching service, you can run your applications in real time with flexible and real-time use cases.

When you don’t require durability, ElastiCache can be used for caching, accelerating application and database performance, or even as your primary data store when you don’t need durability, such as for session stores, gaming leaderboards, streaming, and analytics.

ElastiCache supports Valkey, Redis, and Memcached engines. Valkey is the newest option and the Adobe-recommended cache for Magento, wire-compatible with existing Redis clients.

High Performance High Performance

High Performance

Boost Magento performance, reducing latency to microseconds.

Scalability Scalability

Scalability

Scale with only a few clicks and meet Magento’s high traffic demands.

Cost Optimisation Cost Optimisation

Cost Optimisation

Reduce costs and operational overheads of self-managed caching.

How it works

Amazon ElastiCache is a fully managed and in-memory caching service. It boosts Magento application and database performance. ElastiCache is a primary data store for cases that don’t require durability, like session stores, media streaming, and analytics.

Amazon ElastiCache Benefits Amazon ElastiCache Benefits

Benefits

Reliable Reliable

Reliable

ElastiCache for Redis and Valkey supports enhanced failover logic. It offers automatic failover when the primary nodes for cluster mode are unavailable.

Fully Managed Fully Managed

Fully Managed

Amazon ElastiCache for Redis and Valkey comes as a fully managed service. There is no need for hardware provisioning, software patching, setup, configuration, or failure recovery.

Great Performance Great Performance

Great Performance

The ElastiCache service works as an in-memory data store. It supports the most demanding Magento applications that require sub-millisecond response times.

Highly Available Highly Available

Highly Available

Get support for Redis and Valkey cluster and non-cluster modes that provide high availability with automatic failover. It detects primary node failures and promotes a replica to be primary with minimal impact.

Set up Scaling Quickly Set up Scaling Quickly

Set up Scaling Quickly

Setting up takes a few clicks in the AWS Management Console or CLI. Scale the Valkey or Redis cluster environment up to 500 nodes and 500 shards.

Pay Only For What You Need Pay Only For What You Need

Pay Only For What You Need

Optimize cost efficiency and pay only for what is consumed. When demand drops, ElastiCache for Auto Scaling adjusts the clusters to avoid overspending.

FAQs

The in-memory caching improves latency and throughput for Magento application workloads. It stores critical pieces of data in memory for high-speed access. The cached information may include the results of I/O-intensive database queries of compute-intensive workloads.

Yes, ElastiCache for Redis and Valkey is used as a primary in-memory key-value data store. It offers sub-millisecond Magento performance, high availability, and scalability.

It is possible to configure a 500-node cluster between 83 shards and 500 shards (single master and no replicas). It gives up to 340 TB of memory.

AWS CloudFormation offers templates for quick and reliable provisioning of services or applications.

It provides support for Amazon ElastiCache with templates to create clusters (Valkey, Redis, and Memcached). The templates are up to date with the latest ElastiCache engine types. It offers flexibility and ease of use for customers.

A node is the smallest building block of the Amazon ElastiCache deployment. It is a fixed-size piece of secure, network-attached RAM.

Each node runs a Redis or Valkey instance of the protocol-compliant service. It has its DNS name and port. It offers support for multiple types of nodes, each with associated memory.

A shard is a subset of the cluster's keyspace. It includes a primary node and zero or more read replicas. The shards add up to create a cluster.

Reserved Nodes or Reserved Instances offer discounts over on-demand usage. We have to commit to a one-year or three-year term.

Make a one-time, up-front payment to create a one or three-year reservation. Run the node in a specific Region. The customer receives a significant discount on the ongoing hourly usage charge.

When not using VPC, Amazon ElastiCache allows control access to the clusters via Cache Security Groups.

A Security Group acts like a firewall, controlling network access to the cluster. By default, network access is turned off to the clusters. It is possible to enable access from hosts in specific EC2 security groups.

It is possible to configure the Valkey or Redis full-page cache and default caching. Magento 2 ships with Redis support out of the box, with Valkey 8 as the current Adobe-recommended cache. We use it for cache, session storage, and full-page cache.

It includes command line parameters such as cache-backend-redis-server. The command line is one configuration method. Is it possible to still edit the {Magento install dir}app/etc/env.php configuration file

Yes, Amazon ElastiCache for Redis and Valkey creates a read replica in another AWS Availability Zone. If there is a failure of a node, we will provision a new node.

ElastiCache will automatically promote an existing read replica to the primary when the primary node fails.

Amazon ElastiCache for Redis and Valkey makes it easy to run protocol-compliant server nodes in the cloud.

The web service allows the management, monitoring, and operation of the nodes. We create, delete, and modify the nodes through the Amazon ElastiCache console, the CLI, or the web service APIs.

Amazon ElastiCache for Redis and Valkey supports high-availability configurations. It includes cluster mode enabled/disabled. The service provides auto-failover from primary to a replica.