In Azure Blob Storage should I group user data using containers or blob names?

Anton 1 Reputation point
2022-04-05T05:13:18.317+00:00

I am going to use the Azure Blob Storage on my backend to store user data (some JSON files but it does not matter).

Should I create a container per user or should I use a single container and put all data there using hierarchical blob names like "user-id/blob-name"?

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,564 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 44,671 Reputation points Microsoft Employee
    2022-04-05T11:31:54.887+00:00

    @Anton Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    You use hierarchical blob names like "user-id/blob-name"

    The hierarchical namespace optimizes Azure Storage accounts for use in this scenarios while not forcing the creation of a separate silo of data. The ability to enable the hierarchical namespace for accounts containing existing data allows those customers that are already benefiting from the cost and performance benefits of Azure Storage to gain even more benefit. Learn more here

    Please let us know if you have any further queries. I’m happy to assist you further.

    ----------

    Please do not forget to 190171-screenshot-2021-12-10-121802.png and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments