DynamoDB cross-region replication allows you to maintain identical copies (called replicas) of a DynamoDB table (called master table) in one or more AWS regions.
After you enable cross-region replication for a table, identical copies of the table are created in other AWS regions. Writes to the table will be automatically propagated to all replicas.
DynamoDB Cross-region Replication - Use Cases
You can use cross-region replication for the following scenarios.
-
Efficient disaster recovery:
-
Can switch over to using tables from another region in case a data center failure occurs.
-
-
Faster reads:
-
Can deliver data faster by reading a DynamoDB table from the closest AWS data center.
-
-
Easier traffic management:
-
Can use replicas to distribute the read workload across tables.
-
-
Easy regional migration:
-
By creating a read replica in a new region and then promoting the replica to be a master.
-
-
Live data migration:
-
To move a DynamoDB table from one region to another, you can create a replica of the table from the source region in the destination region. When the tables are in sync, you can switch your application to write to the destination region.
-
DynamoDB Cross-region - Pricing
Pricing: While there is no additional charge for the cross-region replication library, you pay the usual prices for the following resources used by the process. You will be billed for:
-
Provisioned throughput (Writes and Reads) and storage for the replica tables.
-
Data Transfer across regions.
-
Reading data from DynamoDB Streams to keep the tables in sync.
-
The EC2 instances provisioned to host the replication process. The cost of the instances will depend on the instance type you choose and the region hosting the instances.
- heartin's blog
- Log in or register to post comments
Recent comments