On-Demand Nodes

On-demand nodes let you pay by the instance hour with no long-term commitments or upfront fees. This frees you from the costs and complexities of planning, purchasing, and maintaining hardware, and transforms what are commonly large fixed costs into much smaller variable costs. The node type impacts the compute, in-memory data storage capacity, and network throughput available for your MemoryDB cluster.

Data Written

You pay only for the volume of data (in GB) you write to your MemoryDB cluster. This data includes the Redis key, value, and command volume. There are no associated costs for reads.

Data Written

$0.20/GB

(same price in all regions)

Snapshot Storage

Snapshot storage for a MemoryDB cluster is the storage associated with the automated and user-initiated snapshots you take. A snapshot is a copy of an entire cluster at the time when the snapshot was taken. There is no additional charge for snapshot storage of up to 100% of your total MemoryDB cluster storage for a region. There is no additional charge for snapshot storage if your snapshot retention period is 1 day. Additional snapshot storage is billed at storage rates in the table below:

Pricing Examples

Pricing Example 1

You are building an application that requires a database that provides fast data access to enable a  responsive, real-time user experience for a regional logistics company. The application has a total dataset size of 25 GB. On average, 3% of the data is updated every hour. You use a MemoryDB architecture with one shard that includes one primary and one replica node per shard to meet the application requirements. You choose the db.r6g.xlarge node type as it has enough memory to fit the entire working dataset. You also choose to deploy your workload in U.S. West (Oregon). Additionally, you set your snapshot retention to 2 days enabling you to store the snapshot free of charge for the first day and charging you for snapshot storage for the additional day.

Your total charges are calculated as follows:
On-Demand Node Charges
(1 Primary + 1 Replicas) * 1 = 2 total nodes
db.r6g.xlarge hourly pricing = $0.617/hour
2 nodes * $0.617 = $1.234/hour
Data Written Charges
Data Written = 25GB * 3% (throughput update every hour) = 0.75 GB/hour
Data Written pricing = $0.20/GB
0.750 GB/hour * $0.20/GB = $0.150/hour
Snapshot Storage Charges
Day 1: Free of charge for snapshot storage
Day 2: Snapshot storage space for 25 GB = 25 GB * $0.021 per GB-month= $0.525/month
$0.525/730 hours in month = $0.001/hour
Total Charges
Node Charges = $1.234/hour
Data Written Charges = $0.150/hour
Snapshot Storage Charges = $0.001/hour
Total = $1.234+ $0.150 + $0.001 = $1.385/hour

Pricing Example 2

You work at a media and entertainment company and your team built an application that requires very low latency and high throughput. To meet these performance requirements, you use Amazon MemoryDB for Redis as your primary database. The application is read-heavy and has a total dataset size of 50 GB consisting of 100 byte objects (includes Redis key, value and command size). The application is 80% reads and 20% writes, and approximately 50,000 transactions per second. You choose two shards of db.r6g.xlarge node type to have enough memory to fit the entire dataset in the cluster (50GB) and select one replica per shard to support the reads of the application and high availability. You also choose to deploy your workload across two availability zones (AZs) in U.S. East (N. Virginia) for high availability. Additionally, you set your snapshot retention to 2 days allowing you to store the snapshot free of charge for the first day and charging you for snapshot storage for the additional day. Your total charges are calculated as follows:

On-Demand Node Charges
(1 Primary + 1 Replica) *2 =4 total nodes
db.r6g.xlarge hourly pricing = $0.617/hour
4 nodes * $0.617 = $2.468/hour
Data Written Charges
MemoryDB charges only for the writes. So for 50,000 transaction per second with 20% writes and 80% read, you only need to pay for 20% of 50,000 (10,000 transactions per second).
Hence, it is 10,000 transactions per second * 100 bytes * 60 * 60 = 3.6 GB/hour
Data Written pricing = $0.20/GB
3.6 GB * $0.20/GB = $0.720/hour
Snapshot Storage Charges
Day 1: Free of charge for snapshot storage
Day 2: Snapshot storage space for 50 GB = 50 GB * $0.021 per GB-month= $1.050/month
$1.05 / 730 hours in month = $0.001/hour
Total Charges
Node Charges = $2.468/hour
Data Written Charges = $0.720/hour
Snapshot Storage Charges = $0.001/hour
Total = $2.468 + $0.720 + $0.001 = $3.189/hour

Additional pricing resources

AWS Pricing Calculator

Easily calculate your monthly costs with AWS

Learn how to get started
Check out getting started resources

Discover MemoryDB resources on the getting started page.

Learn more 
Learn with a tutorial
Learn with a tutorial

Explore how to set up your first MemoryDB cluster.

Get started 
 Start building with MemoryDB
Start building with MemoryDB

Check out the MemoryDB user guide to get started.

Read the documentation