CLOUD CONCEPT

Data Replication

Data replication is the process of maintaining copies of the same data on multiple storage systems or locations and propagating changes between them.

Cloud Concepts Hub →

What is Data Replication

Replication helps systems preserve data and continue operating when hardware, servers, or entire locations fail. Its effectiveness depends on where replicas are placed, how changes are acknowledged and synchronized, and whether applications can switch to a usable replica.

Data replication maintains multiple copies of data and propagates changes between them. Cloud storage and database services use replication to tolerate infrastructure failures, support recovery, and sometimes distribute read traffic. Replication can operate at the block, file, object, or database-record level. The key architectural question is not simply whether copies exist, but which failures those copies can survive and how applications access them afterward.

Replica placement determines the scope of protection. Copies on separate devices can protect against a disk failure, but copies within one Availability Zone do not provide protection against losing that entire zone. Replication across Availability Zones supports resilience to a zone failure. Cross-Region replication can support regional disaster recovery, geographic access, or regulatory requirements, but usually introduces greater network latency, transfer costs, and operational complexity.

Synchronous replication waits for the required replica acknowledgments before reporting a write as successful. Depending on the replication protocol and failure scenario, this can prevent the loss of acknowledged writes when a primary fails. The trade-off is additional write latency and possible write unavailability when required replicas cannot communicate. Synchronous replication does not necessarily mean that every copy has received the write; some systems require acknowledgment from a quorum.

Asynchronous replication acknowledges writes before all replicas receive them. It can reduce foreground write latency and is commonly used across Regions or for read replicas. However, a replica can lag behind the source. For example, a customer who updates an address and immediately reads from a lagging replica might see the old address. If the source fails before its latest writes are replicated, promoting that replica can lose those writes.

Recovery point objective, or RPO, describes the acceptable amount of data loss measured in time. Recovery time objective, or RTO, describes how quickly service must be restored. Replication lag influences achievable RPO, while failure detection, replica promotion, application reconnection, and routing influence RTO. A replicated copy alone does not guarantee automatic failover or uninterrupted service. Applications still need connection retries, appropriate timeouts, and a tested recovery process.

Durability and availability are different characteristics. Durability concerns retaining data without loss; availability concerns being able to access the service when needed. A highly durable storage system can temporarily be unavailable. Similarly, a readable replica might improve availability without containing the latest writes. Read replicas may increase read capacity, but they generally do not increase the write capacity of a single-writer database.

Replication is not a substitute for backup. Accidental updates, corrupted application writes, or malicious changes can propagate to replicas. Versioning, point-in-time recovery, retained backups, and immutable copies provide recovery options that live replicas alone do not. For example, replicate an order database across zones for infrastructure resilience while retaining backups to recover from an accidental table deletion.

Evaluate the replication behavior of each storage class and deployment option rather than assuming an entire service behaves uniformly. A block volume replicated within one zone remains tied to that zone's failure boundary, whereas a multi-zone storage service provides a different level of protection. Monitor lag and replication failures, verify permissions and encryption-key access at recovery locations, and test failover under realistic workloads. For architecture questions, match the required failure scope, data-loss tolerance, recovery time, consistency, and cost to the actual replication configuration.

Key aspects of Data Replication

Effective replication combines appropriate replica placement, propagation semantics, consistency, failover procedures, and independent recovery protection.

Failure-domain separation

Place replicas across independent failure domains that match the required protection level. Multiple copies within one Availability Zone do not provide the same protection as copies distributed across zones or Regions.

Synchronous and asynchronous propagation

Synchronous replication requires specified replica acknowledgments before a write succeeds, adding latency and communication dependencies. Asynchronous replication reduces that dependency but permits lag and potential loss of unreplicated writes.

Consistency and read behavior

A replica can contain older data than the writer, depending on the replication and consistency model. Route freshness-sensitive reads appropriately and do not assume that every replica immediately reflects a successful write.

Recovery objectives and failover

Use RPO to determine acceptable data loss and RTO to determine acceptable recovery time. Confirm whether failover is automatic, whether a replica needs promotion, and how applications reconnect.

Durability versus availability

Replication can improve both data retention and service continuity, but these are separate outcomes. A stored copy may survive a failure while remaining temporarily inaccessible or unavailable for writes.

Independent recovery protection

Maintain backups or version history because replication can propagate unwanted changes. Monitor replication health and test recovery rather than treating the existence of a replica as proof of recoverability.

Cloud services for Data Replication

Select replication separately for each application data layer: S3 for objects, EBS for instance-attached block storage, EFS for shared files, and RDS, Aurora, or DynamoDB for database data. Their default failure boundaries and failover behavior differ, so one replicated component does not make the whole application resilient. A multi-zone application might combine regional object storage with a Multi-AZ database, while a regional recovery plan also needs suitable cross-Region copies, application infrastructure, routing, and encryption-key access. Retain backups and test recovery across all dependent layers.

Amazon Simple Storage Service image Amazon S3

S3 Standard stores objects redundantly across multiple Availability Zones, while S3 One Zone-IA uses a single Availability Zone. S3 Replication provides asynchronous copying between buckets in the same or different Regions; existing objects require a separate mechanism such as S3 Batch Replication.

Open Amazon S3 →
Amazon RDS image Amazon RDS

RDS Multi-AZ DB instance deployments synchronously replicate to a standby in another Availability Zone for high availability; that standby does not serve reads. Read replicas typically use asynchronous replication for read scaling and potential promotion, while Multi-AZ DB clusters have a different architecture with readable instances.

Open Amazon RDS →
Amazon Aurora image Amazon Aurora

Aurora replicates its cluster storage across three Availability Zones, separating storage durability from database-instance availability. Aurora Replicas provide read capacity and failover targets, while Aurora Global Database uses asynchronous cross-Region storage replication for geographic reads and disaster recovery.

Open Amazon Aurora →
Amazon DynamoDB image Amazon DynamoDB

DynamoDB replicates table data across multiple Availability Zones within a Region. Global tables extend replication across Regions, with multi-Region eventual consistency and multi-Region strong consistency options that have different latency, topology, and regional-availability constraints.

Open Amazon DynamoDB →