create a container storage in azure for each user ?

deva 20 Reputation points

I'm building photo based application, I want store photos based on user level. so is it ok to create a storage container for each user?

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

Accepted answer
  1. Thomas Meads 1,586 Reputation points


    Yes is the short answer.

    The longer answer is:

    Assuming you are only giving users access to their own images and they are not being put into a public location this seems like a perfectly valid idea. It will allow for easy segregation of data and generating SaS tokens for access will be simple as you can always give direct access to the container (regardless of if this is via a service or to the user). Also it will by design always get the minimum amount of data for a user etc etc.

    The question on this would be if the site allowed for access across containers so if you wanted all the photos of a chair. Then you would need to query many containers. So putting it into a single container and using index tags with the UID could be a better idea in that situation.

    Hope this helps.

0 additional answers

Sort by: Most helpful