Amazon DynamoDB

icon picker
DynamoDB Global Tables

Amazon DynamoDB global tables are a fully managed, multi-Region, and multi-active (multi-master) database option that delivers fast and localized read and write performance for massively scaled global applications.
Global tables provide a fully managed solution for deploying a multi-Region, multi-active database, without having to build and maintain your own replication solution. You can specify the AWS Regions where you want the tables to be available and DynamoDB will propagate ongoing data changes to all of them.
Specific benefits for using global tables include:
Replicating your DynamoDB tables automatically across your choice of AWS Regions
Eliminating the difficult work of replicating data between Regions and resolving update conflicts, so you can focus on your application's business logic.
Helping your applications stay highly available even in the unlikely event of isolation or degradation of an entire Region.
DynamoDB global tables are ideal for massively scaled applications with globally dispersed users. In such an environment, users expect very fast application performance. Global tables provide automatic multi-active replication to AWS Regions worldwide. They enable you to deliver low-latency data access to your users no matter where they are located.

image.png

Key Features

Multi-Region, Multi-Master Replication:
Global Tables allow read and write operations to be performed on any replica table in any region, providing low-latency access and high availability.
DynamoDB automatically replicates data changes across all specified regions.
High Availability and Disaster Recovery:
By having identical tables in multiple regions, Global Tables ensure that your application remains available even if one region experiences an outage.
This setup enhances the resilience of your application.
Scalability:
Ideal for applications with massive scale and globally distributed users.
Global Tables can scale horizontally to handle high request volumes.
Automatic Conflict Resolution:
DynamoDB Global Tables handle conflicts that may arise due to concurrent updates, ensuring data consistency across regions.

Definitions

Global Table:
A global table is a collection of one or more replica tables, all owned by a single AWS account.
Replica Table:
A replica table (or replica, for short) is a single DynamoDB table that functions as a part of a global table. Each replica stores the same set of data items. Any given global table can only have one replica table per AWS Region.

Operational Considerations

Creating Global Tables:
Specify the AWS regions where the table should be available.
DynamoDB will create identical tables in these regions and manage data replication.
Adding Replica Tables:
You can add more replica tables to extend the global table to additional regions.
DynamoDB does not support partial replication; each replica table must store the complete set of data items.
Consistency Models:
Eventually Consistent Reads: Supported across all regions, allowing applications to read data with the assurance that changes will eventually be propagated.
Strongly Consistent Reads: Must be performed in the same region where the writes occurred, as DynamoDB does not support strong consistency across regions.
Capacity Settings:
Ensure that each replica table and secondary index has identical write capacity settings to maintain proper data replication.


Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.