Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
Last Updated: Mar 27, 2024
Difficulty: Easy

Configuring Azure Object Replication

Leveraging ChatGPT - GenAI as a Microsoft Data Expert
Speaker
Prerita Agarwal
Data Specialist @
23 Jul, 2024 @ 01:30 PM

Introduction

Azure Object Replication is used for asynchronously copying blobs between source and destination storage accounts.

configuring azure object replication

This article will teach you how to configure Azure object replication. Before we start, let's take a look at the Blob Storage service in Azure.

What is Blob Storage?

Azure Blob Storage is a service that can be used for storing large amounts of unstructured data in the cloud. The following are some of its use cases:-

  • Serving images or documents directly to a browser
     
  • Storing files for distributed access
     
  • Streaming video and audio
     
  • Storing data for backup and disaster recovery
     
  • Storing data for analysis by an on-premises or Azure-hosted service


Now, let us quickly move to the steps of Configuring Object Replication: 

Get the tech career you deserve, faster!
Connect with our expert counsellors to understand how to hack your way to success
User rating 4.7/5
1:1 doubt support
95% placement record
Akash Pal
Senior Software Engineer
326% Hike After Job Bootcamp
Himanshu Gusain
Programmer Analyst
32 LPA After Job Bootcamp
After Job
Bootcamp

Steps for Configuring Object Replication

We will use the Azure portal for configuring object replication for a test storage account. Before proceeding forward, ensure that you can access two separate Azure storage accounts, and that blob versioning is enabled for them. Also, ensure change feed is enabled for the source account.

Step 1: Visit your Azure dashboard, and navigate to the source storage account. Then select the Object replication option under Data Management from the sidebar.

step screenshot

Step 2: Click on the Create replication rules button. 

step screenshot

Step 3: Select a destination storage account from the dropdown. It should be different from the source account.

step screenshot

Step 4: Select the source and destination containers. Depending on the replication rules, objects from the source container are copied to the destination container.

step screenshot

Step 5: Click on Change under the Copy-over column to choose which objects are copied based on the time they are added to the source container. 

step screenshot

Step 6: Click on Add under the Filters column to add prefix-based filtering for blobs and folders in the source container.

step screenshot

Step 7: When you are done with adding container pairs, click on Create.

step screenshot

Upon successful creation, you will see notifications similar to the following on the top right corner of your screen.

step screenshot

Now, we will see how to remove a replication policy.

Removing Object Replication Policy

Removing an object replication policy is a single-step process. Just navigate to the Object Replication tab for your source storage account, select the policy you want to remove, and click on the Delete Rules option.

 

step screenshot

Upon successful deletion, you will see notifications similar to the following.

step screenshot

The following section covers some important points related to object replication.

What is Object Replication?

object replication

Credit: learn.microsoft.com

Object replication in Azure is used for asynchronously copying all the information related to a blob from a source to a destination container based on your configuration.

The following are some use cases of Object Replication:-

  • Minimized latency: Object replication helps you reduce latency for read requests by allowing clients to fetch data from a region closer to them
     
  • Higher Efficiency: You can perform computation on large datasets by processing them in different regions
     
  • Reduced Costs: After replicating your data, you can reduce your billing costs by archiving it to cold storage services

Frequently Asked Questions

What is blob versioning in Azure?

The blob versioning feature automatically maintains previous versions of your blob storage, allowing you to easily recover modified or deleted data. Azure creates a unique version ID for each write operation to your blob.

What are asynchronous transfers?

Asynchronous transfers are non-blocking transfer operations that allow other tasks to run in parallel. Azure Object replication uses asynchronous transfers to copy data, meaning that the changes to the source container are not instantly reflected in the destination container.

What is “change feed” in Azure Blob Storage?

The change feed feature provides ordered, durable, and read-only transaction logs of the changes to the blobs in your storage account. Each change generates precisely one change in the log.

Conclusion

This article discussed configuring Azure object replication using the Azure portal. We also looked at some important points related to it.

You can go through the following articles to learn more about Microsoft Azure:-

 

Happy Learning!

Topics covered
1.
Introduction
2.
What is Blob Storage?
3.
Steps for Configuring Object Replication
4.
Removing Object Replication Policy
5.
What is Object Replication?
6.
Frequently Asked Questions
6.1.
What is blob versioning in Azure?
6.2.
What are asynchronous transfers?
6.3.
What is “change feed” in Azure Blob Storage?
7.
Conclusion