DEV Community

Cover image for Optimising Global Content Delivery: Ensuring Low Latency for Expanding Worldwide Demand
Yemi G
Yemi G

Posted on • Updated on

Optimising Global Content Delivery: Ensuring Low Latency for Expanding Worldwide Demand

Create a storage account to support the public website.

In the portal, select storage accounts

Image description

Select "+ Create"

Image description

Create new resource group and select "OK"

Image description

Name storage account

Image description

Select "Review and Create"

Image description

Select "Create"

Image description

Select Go to Resourcce

Image description

This storage requires high availability if there’s a regional outage. Additionally, enable read access to the secondary region,

In the Data management section

Image description

Select Redundancy

Image description

Select Read-access geo-redundant storage

Image description

Review primary and secondary location

Image description

Information on the public website should be accessible without requiring customers to login.

In the settings section

Image description

Ensure Allow Blob anonymous access is Enabled

Image description

Save your changes

Image description

Create a blob storage container with anonymous read access
The public website has various images and documents. Create a blob storage container for the content

In your storage account, select Data storage and select Containers blade

Image description

Select "+ Container"

Image description

Name the container

Image description

Select "Create"

Image description
**
Customers should be able to view the images without being authenticated. Configure anonymous read access for the public container blobs**

Select the public container

Image description

Select change access level

Image description

Ensure public access level is Blob

Image description

Select "OK"

Image description

Practice uploading files and testing access
For testing, upload a file to the public container. The type of file doesn’t matter

Select "Upload" from the Container

Image description

Upload file

Image description

Copy URL annd paste in a new browser tab

Image description

File should display

Configure soft delete
It’s important that the website documents can be restored if they’re deleted

Go to the overview blade of the storage account

Image description

On the properties page, loacte blob service section

Image description

Select the Blob soft delete setting

Image description

Ensure the Enable soft delete for blobs is checked.

Image description

Change the Keep deleted blobs for (in days setting is 21.

Image description

Don’t forget to Save your changes.

Image description

If something gets deleted, you need to practice using soft delete to restore the files.

Navigate to your container where you uploaded a file.
Select the file you uploaded and then select Delete.

Image description

Select OK to confirm deleting the file.

Image description

On the container Overview page, toggle the slider Show deleted blobs. This toggle is to the right of the search box.
Select your deleted file, and use the ellipses on the far right, to Undelete the file.

Image description

Refresh the container and confirm the file has been restored.

Image description

Configure blob versioning

*It’s important to keep track of the different website product document versions. *

Go to the Overview blade of the storage account.

Image description

In the Properties section, locate the Blob service section.
Select the Versioning setting.

Image description

Ensure the Enable versioning for blobs checkbox is checked.

Image description

Notice your options to keep all versions or delete versions after.
Don’t forget to Save your changes.

Image description

As you have time experiment with restoring previous blob versions.
Upload another version of your container file. This overwrites your existing file.
Your previous file version is listed on Show deleted blobs page.

Top comments (0)