Amazon DynamoDB global table

Amazon DynamoDB global table  for the deployment of multi-regional, multi-master database provides a fully managed solution, without having to build and maintain your own replication solutions. When you create a global table, specify where you want to provide a list of AWS region. DynamoDB execution and will continue to create the same table data changes propagated to all these tables all tasks necessary in these areas.

To illustrate a case of using the global table, assuming you have a large client base across three geographic regions - US East Coast, US West Coast and Western Europe. Customers use your application needs to update their profile information. To meet these needs, you can create three named in three different AWS region  CustomerProfiles  identical DynamoDB table. The three tables completely independent of each other, and a data table changes are not reflected in the other table. If you do not copy hosting solution, you can write code to replicate data changes between these tables; however, it will be a very time-consuming, labor-intensive work.

You can now create three specific areas  CustomerProfiles  global table consisting of table, without having to write your own code. DynamoDB then automatically replicated data changes between these tables, so a region  CustomerProfiles  changes seamless data to other areas. In addition, if an AWS region become temporarily unavailable, your customers can still access the same in other areas  CustomerProfiles  data.

DynamoDB global table is ideal for users all over the large-scale applications around the world. In such an environment, you need a very fast application performance. Global table provides automatic multi-master replication to the global AWS region, so you can provide low latency data access to users, no matter where they are located.

Copy of the table (referred to as copy ) DynamoDB table as part of a single global table running. Each copy of the same set of data items stored. Any given global table in each region can have only one copy of the table.

The following is a conceptual overview of how to create a global table.

  1. Creating enabled in the AWS region DynamoDB flow ordinary DynamoDB table.

  2. For each of the other AWS regions Repeat steps to copy your data to 1.

  3. DynamoDB global table based on table definitions that you create.

AWS Management Console automatically perform these tasks, so you can quickly and easily create a global table.

DynamoDB generated global table comprising a plurality of copies of tables, one for each zone, each copy DynamoDB table as a single unit. Each copy has the same table and the same primary key infrastructure. When the application writes data to a copy of the table area, DynamoDB automatically propagated to other copies of the writing table in the other regions AWS.

important

Global Tables The following attributes are automatically created for each project, in order to keep your table data synchronization:

  • aws:rep:deleting

  • aws:rep:updatetime

  • aws:rep:updateregion

You should not modify these properties or create a property with the same name.

You can add a copy of the table to the global table, so that it can be used in other AWS regions. (To this end, the global table must be empty. In other words, any copy of the table can not have any data.)

Guess you like

Origin www.cnblogs.com/cloudrivers/p/11230109.html