Create a container storage in Azure for each user

2019-09-03 20:05发布

问题:

My question is simple, I have a web app where the users can upload photos and other stuff...

Is a good practice create a container storage in Azure for each user in my application?

My web app, now have about 40K users. I need to get the size total of the uploaded content user and I work with CDN too, but it's growing about 10K users/month.

If the user pass the limit of 20Mb, I need to send an email informing the user about it.

Now, in Amazon S3, we have just one bucket, and I am using "folders" for each user.

Thanks!!

回答1:

The answer to your question will be based on opinion. However, it is possible to create one container and create virtual directories for each user, if you'd like to go that route. You can learn more about that here: https://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-how-to-use-blobs/#naming-and-referencing-containers-and-blobs