Setting up global replication of your Azure Cosmos DB database using the Azure portal

Setting up global replication of your Azure Cosmos DB database using the Azure portal

Azure Cosmos DB is a globally distributed, low-latency, high throughput databases services. Azure Cosmos DB provides global distribution, which means you can scale and distribute it across different Azure regions. Global replication of your Azure Cosmos DB enables you to have your data replicated over as many as datacenter per your need, moreover control and access your replicated data seamlessly. Setting up the Geo-Replication is very easy and can be done in a couple of clicks from the Azure Portal.

Setting up Geo-Replication

Follow these steps to set up the Geo-Replication

  1.  From the Azure Portal, Open the Azure Cosmos DB database resource
  2. Select “Replicate data globally” under the “Settings” option.

In the initial state, the Global Distribution map will highlight the Write Region, which is the origin of the Cosmos DB database.

Cosmos DB Geo-Replication Setup
Cosmos DB Geo-Replication Setup

Now you can add additional region by simply clicking on the regions you want to replicate to on the map or Just clicking on “Add New Region” button which is available under the “Read Regions” section.

 

Replicated Region Setup for Cosmos DB
Replicated Region Setup for Cosmos DB

 

 

When you are done, click on Save.

The overall process will take a while and it will depend on the number of regions you selected for your data to be replicated.

Cosmos DB Geo-Replication In Process
Cosmos DB Geo-Replication In Process

That’s all! Once the Geo-Replication is done, you can go back and check all your regions on the Map, further you can add or remove any other regions as per your need.

Azure Cosmos DB Geo-Replication Completed
Azure Cosmos DB Geo-Replication Completed

Now, You can also specify the priorities for your data center regions to decide which data center to go first for failover in case of a disaster, we will cover up that in our next post.

You may read more about global data distribution of Azure Cosmos DB over here.

Hope this helps.

Abhijit Jana

Abhijit runs the Daily .NET Tips. He started this site with a vision to have a single knowledge base of .NET tips and tricks and share post that can quickly help any developers . He is a Former Microsoft ASP.NET MVP, CodeProject MVP, Mentor, Speaker, Author, Technology Evangelist and presently working as a .NET Consultant. He blogs at http://abhijitjana.net , you can follow him @AbhijitJana . He is the author of book Kinect for Windows SDK Programming Guide.

2 Comments to “Setting up global replication of your Azure Cosmos DB database using the Azure portal”

Comments are closed.