Amazon MemoryDB for Redis
Cloud service · AWS · Updated

Amazon MemoryDB for Redis

In short

Amazon MemoryDB is a fully managed, Valkey- and Redis OSS-compatible, durable, in-memory database service designed to deliver ultra-fast performance for data-intensive applications.

Cloud Services Hub →

9 key features of Amazon MemoryDB for Redis

Amazon MemoryDB for Redis offers a fully managed, highly available, and scalable Redis-compatible service with microsecond read latency, ensuring data durability, Multi-AZ replication, and seamless AWS integration.

01
Fully Managed Service

Amazon MemoryDB is a fully managed, Redis-compatible service, enabling users to automate tasks such as hardware provisioning, setup, configuration, monitoring, failure recovery, and backups.

02
Microsecond Latency

The service offers microsecond latency for read operations and single-digit millisecond latency for write operations, providing high-performance data access.

03
Compatibility with Redis

MemoryDB is designed to be compatible with Redis, allowing applications written for Redis to work with MemoryDB without the need for modifications.

04
Multi-AZ Replication

It supports Multi-AZ (Availability Zone) replication, enhancing data durability and availability by automatically replicating data across multiple AZs.

05
Data Durability

Amazon MemoryDB uses a distributed Multi-AZ transactional log to provide data durability, consistency, and recoverability across restarts and failures.

06
Scalability

The service enables easy scalability, allowing users to scale their database capacity up or down according to their application’s needs without downtime.

07
Integrated with AWS

MemoryDB is deeply integrated with other AWS services, facilitating easy setup of secure and scalable applications with services like AWS Identity and Access Management (IAM), Amazon CloudWatch, and more.

08
Read Consistency

Primary nodes provide strong consistency; replica nodes provide guaranteed eventual consistency.

09
Access Control Lists

MemoryDB supports user authentication and authorization through Valkey and Redis OSS Access Control Lists (ACLs).

Where Amazon MemoryDB for Redis is used

Amazon MemoryDB for Redis is employed for real-time analytics, caching strategies to enhance web application performance, acting as a message broker for seamless inter-component communication, and managing leaderboards or counters in online platforms.

  1. 01
    Real-time Analytics

    Amazon MemoryDB supports real-time analytics by enabling fast data ingestion and retrieval, allowing businesses to analyze data as it comes in and make timely decisions. This is particularly useful in scenarios such as monitoring e-commerce transactions for fraud detection or tracking live user interactions on web applications.

  2. 02
    Caching Strategies

    By serving as an in-memory data store, Amazon MemoryDB for Redis significantly reduces response times for data retrieval in web applications, thereby improving user experience. It's ideal for caching frequently accessed but rarely updated data, such as user session information, product catalogs in e-commerce sites, or high-score tables in gaming applications.

  3. 03
    Message Brokering

    With its support for pub/sub messaging patterns, Amazon MemoryDB for Redis can act as a message broker, enabling communication among different parts of an application. This use case is crucial for building scalable, loosely coupled architectures where components need to exchange messages reliably and in real-time, such as in microservices architectures or IoT applications.

  4. 04
    Leaderboards and Counting

    Thanks to its native support for sorted sets, Amazon MemoryDB is perfectly suited for implementing real-time leaderboards for online gaming platforms or social networks. It can also efficiently manage counting applications, like tracking page views or likes, making it an excellent choice for interactive web services.

How Amazon MemoryDB for Redis is priced

Amazon MemoryDB for Redis offers both On-Demand Instances and Reserved Instances, providing flexible pricing based on immediate needs or longer-term commitments for memory capacity.

On-Demand Nodes

On-demand nodes are billed per instance-hour with no long-term commitments or upfront fees. The node type determines the compute, in-memory storage capacity, and network throughput available to the cluster.

Reserved Nodes

Reserved nodes provide discounted hourly rates for one-year or three-year terms, with No Upfront, Partial Upfront, or All Upfront payment options. Reservations offer size flexibility within a node family and AWS Region.

Data Tiering

R6gd nodes with data tiering are billed per instance-hour consumed.

Data Written

Data written is billed by GB, including key, value, and command volume, with no associated read charges. For Valkey, the first 10 TB written per month is free; Redis OSS data written costs $0.20/GB.

Snapshot Storage

Snapshot storage up to 100% of total MemoryDB cluster storage in a Region has no additional charge, and a one-day snapshot retention period has no additional snapshot storage charge. Additional snapshot storage is billed separately.

Data Transfer

MemoryDB charges for cross-Region data transfer when using Multi-Region. Inbound transfer and transfer between MemoryDB and other AWS services within the same AWS Region have no MemoryDB data transfer charge.

Services Amazon MemoryDB for Redis works with

Amazon CloudWatchAmazon CloudWatch

MemoryDB integrates with Amazon CloudWatch to provide monitoring and metrics for your MemoryDB clusters, including CPU utilization, memory usage, and network throughput.

AWS Identity and Access Management (IAM)AWS Identity and Access Management (IAM)

IAM integration allows you to manage access to MemoryDB through detailed IAM policies, ensuring that only authorized users and applications can access your MemoryDB resources.

AWS CloudTrailAWS CloudTrail

MemoryDB integrates with AWS CloudTrail to log all API calls, providing you with a history of all actions taken on your MemoryDB resources for governance and compliance purposes.

Amazon ElastiCacheAmazon ElastiCache

MemoryDB can restore Redis OSS .rdb snapshots from ElastiCache into a new cluster. To migrate existing data, export the ElastiCache snapshot to Amazon S3 and use it to seed the MemoryDB cluster.

Amazon EventBridgeAmazon EventBridge

MemoryDB management API calls recorded by CloudTrail can be matched by EventBridge rules. For example, a rule can detect a cluster deletion request and route it to an operational response workflow.

Amazon S3Amazon S3

MemoryDB supports exporting snapshots to an S3 bucket and importing compatible .rdb snapshot files from S3 when creating a cluster. This supports retaining exported backups and migrating data from another Redis OSS deployment.

AWS CloudFormationAWS CloudFormation

MemoryDB clusters, subnet groups, parameter groups, users, and access control lists can be provisioned as CloudFormation resources. A template can define a cluster together with its network placement and authentication configuration.

AWS ConfigAWS Config

AWS Config can record the configuration of MemoryDB resources and track configuration changes. This allows you to audit cluster settings and evaluate them against configuration policies.

What is Amazon MemoryDB for Redis

3 min read

Amazon MemoryDB is a fully managed, in-memory database service that provides microsecond read latency and single-digit millisecond write latency for web-scale applications. Amazon MemoryDB offers a durable, highly available, and scalable database solution compatible with existing Redis OSS application code, tools, and clients. 

This service leverages the power of in-memory computing to offer blazing-fast data access speeds, making it a perfect fit for high-performance scenarios such as caching, session stores, leaderboards, geospatial services, and real-time analytics. 

AWS recommends Amazon ElastiCache for new workloads. ElastiCache now supports durability for both caching and use cases requiring a persistent data store with zero data loss.

One of the key features of Amazon MemoryDB is its compatibility with Redis APIs, which allows developers to easily migrate existing Redis-based applications without the need to modify the application code. This compatibility ensures a smooth transition and enables developers to leverage their existing knowledge and experience with Redis. 

Furthermore, being a managed service, Amazon MemoryDB relieves users from the operational burden of managing a high-performance database. The service automates tasks such as provisioning, patching, backup, recovery, failure detection, and repair, thereby allowing developers to focus on application development rather than database management. 

Automatic snapshots are stored in Amazon S3 and can be retained for up to 35 days.

Amazon MemoryDB is designed to provide both high availability and durability. It replicates data across multiple Availability Zones in an AWS Region, ensuring that your data is safe and accessible even in the event of a zone failure. The service also offers data durability by using a distributed transaction log across these zones, safeguarding against data loss. This makes Amazon MemoryDB a reliable choice for critical applications that demand both performance and resilience. 

MemoryDB Multi-Region provides active-active deployment across multiple AWS Regions, allowing local reads and writes in each Region. Replication between Regions is asynchronous, typically propagates within one second, and provides eventual consistency with automatic conflict resolution.

The scalability of Amazon MemoryDB is another highlight. The service allows for seamless scaling of the database to meet the demands of your application. This means your database can grow with your application, ensuring that you always have the right amount of resources to handle your workload. Scalability, combined with high performance, makes Amazon MemoryDB suitable for a wide range of applications, from gaming and ad-tech to financial services and e-commerce. 

MemoryDB partitions data across shards, each containing one read/write primary and up to five read replicas. A cluster supports up to 500 shards.

Adding shards scales write throughput, while adding replicas scales read throughput.

Vector search is limited to a single shard and does not support horizontal scaling; vertical scaling and replica scaling are supported.

MemoryDB also supports data tiering on R6gd nodes, automatically moving less-frequently accessed data from memory to SSDs. This option increases storage capacity at the cost of additional latency when accessing data on SSD.

Moreover, Amazon MemoryDB provides a secure environment for your data. It offers encryption at rest and in transit, along with integration with AWS Identity and Access Management (IAM) for fine-grained access control. This comprehensive security model helps in safeguarding sensitive information and achieving compliance with various regulatory standards. 

In conclusion, Amazon MemoryDB stands out as a high-performance, fully managed in-memory database service that offers the speed, scalability, durability, and security required by modern, data-intensive applications. Its compatibility with the Redis ecosystem, coupled with the ease of management and robustness offered by AWS, makes it an attractive option for developers looking to leverage the power of in-memory computing without the operational complexities. Whether it’s for real-time analytics, caching, or other high-speed data processing tasks, Amazon MemoryDB provides a compelling solution that combines the best of Redis with the scalability and reliability of AWS infrastructure.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.