liveBook · Manning

Primary node

As explained in Amazon Web Services in Action, Third Edition: An in-depth guide to AWS

A primary node is the authoritative cache node that accepts data operations and provides the source state for replicas.

A primary node is the authoritative node in a replicated data system. It accepts data operations and provides the state that replicas copy. In Redis, the primary accepts reads and writes while replicas accept reads; in an RDS high-availability deployment, clients send requests to the primary and a standby can be promoted if it fails. section 11.6.2 section 10.5

Use the primary node according to the deployment model:

  • Choose a single-shard Redis cluster with cluster mode disabled when all cached data fits on one node; synchronize the primary with one to five replicas. section 11.2.3
  • Choose cluster mode enabled when data exceeds one node’s memory; each shard has a primary and may have replicas, while clients discover topology through a configuration endpoint. section 11.2.4
  • Treat Redis replicas as eventually consistent because replication is asynchronous; use them to expand read capacity, not as independent write authorities. section 11.6.2
  • Expect managed failover to promote a standby or replica when the primary fails; RDS updates DNS, while enabled Redis cluster mode avoids DNS-based failover. section 10.5 section 11.2.4

Sizing a Redis deployment

A 4 GB cache can use one primary with replicas when a single node has enough memory. A 22 GB cache spread across 4 GB nodes needs six shards, each with its own primary and optional replicas. section 11.2.3 section 11.2.4

Figure 11.6 Redis deployment option: Cluster with cluster mode disabled

Inspect the deployment layout showing one Redis primary synchronized with replica nodes in a cluster with cluster mode disabled. section 11.2.3

How Amazon Web Services in Action, Third Edition: An in-depth guide to AWS covers it

How deep it goes
Distinguishes primary, replica, standby, sharding, and failover, but does not detail replication protocols or election internals.
Examples
Uses RDS standby promotion, 4 GB single-shard caches, and 22 GB Redis data distributed across six shards.
What you can do after
Configure replication or sharding through ElastiCache Redis deployment choices and understand how managed failover redirects clients.
How it connects
Connects primary nodes with replication, read scaling, sharding, failover, high availability, RDS, ElastiCache, and Redis.

Also explained in

Compare how 4 books explain primary node →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Amazon Web Services in Action, Third Edition: An in-depth guide to AWS. The section links point to the parts of the book it draws on.