MemoryDB Components
Let’s dive into the key components of MemoryDB and see how they work together.Clusters and Nodes
A MemoryDB cluster consists of one or more nodes serving a single dataset. Within each cluster:- The primary node manages both read and write requests.
- Replica nodes handle read requests, offloading the primary node to improve read scalability.

Shards
MemoryDB partitions the dataset across shards. Each shard contains:- One primary node dedicated to write operations.
- Up to five replicas that serve read requests.
Other Key Components
- Parameter Groups: Named collections of engine-specific parameters and configuration settings applied to your cluster.
- Subnet Groups: Ensure that only designated traffic has access to your cluster.
- Access Control Lists: Define user permissions for executing Redis commands and accessing data.


- Horizontally: Add or remove nodes (replicas or shards) to scale as required.
- Vertically: Choose different node types to meet performance demands.
- Write throughput can be enhanced by adding additional shards, and read throughput can be improved by increasing the number of read replicas.
Use Cases and Benefits
MemoryDB for Redis caters to various workloads that demand high performance and low latency. Here are some common use cases:| Use Case | Description |
|---|---|
| Web and Mobile Applications | Use Redis data structures to deliver personalized experiences, manage user profiles, store preferences, and track inventories with extremely fast read and write operations. |
| Online Gaming | Build robust data stores for player data, session histories, and leaderboards that demand massive scale and high concurrency for real-time updates. |
| Streaming Media and Entertainment | Support high concurrency for streaming data feeds, ingest user activity, and process millions of requests per day seamlessly. |
MemoryDB’s ability to serve both as a primary database and cache simplifies your architecture by reducing the overhead of managing separate systems for caching and primary data storage.

