Course contentsShow
← Cloud and Infrastructure
Lesson 435 of 2,9898. Managed DatabasesFree lesson

DynamoDB Global Tables for Multi-Region

Configuring global tables for automatic multi-region replication with eventual consistency and conflict resolution.

DynamoDB Global Tables for Multi-Region

What You'll Learn

You'll learn how DynamoDB Global Tables automatically replicate your data across multiple AWS regions for low-latency global access and disaster recovery.

What Are Global Tables?

Global Tables turn a single DynamoDB table into a multi-region, fully replicated database. When you write data to your table in one region (say, US East), DynamoDB automatically copies that data to replica tables in other regions you've configured (like Europe or Asia)—typically within seconds.

Think of it like having synchronized notebook copies in different offices around the world. When someone writes in the notebook at the London office, the New York and Tokyo notebooks automatically update themselves.

How It Works

Global Tables use DynamoDB Streams (which you just learned about) to capture changes. When you insert, update, or delete an item in any region, that change flows through the stream and replicates to all other regions.

Eventual Consistency

Because data travels across the internet between regions, Global Tables use eventual consistency—all regions will have the same data, but there might be a brief delay (usually under a second). During that window, different regions might show slightly different values.

Conflict Resolution

What if two users update the same item in different regions simultaneously? DynamoDB uses last-writer-wins conflict resolution based on timestamps. The most recent write (by timestamp) wins and overwrites earlier changes.

Key Benefits

  • Low latency: Users read from the nearest region
  • High availability: If one region fails, others continue working
  • Active-active: You can write to any region, not just one primary

Key Takeaway: DynamoDB Global Tables provide automatic multi-region replication with eventual consistency and timestamp-based conflict resolution, enabling globally distributed applications with local read/write performance.