在Azure中为每个用户创建一个容器存储 [英] Create a container storage in Azure for each user

查看:84
本文介绍了在Azure中为每个用户创建一个容器存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题很简单,我有一个Web应用程序,用户可以在其中上传照片和其他内容...

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

一种好的做法是在Azure中为我的应用程序中的每个用户创建一个容器存储吗?

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

我的网络应用程序现在拥有约4万名用户.我需要获取上传的内容用户的总人数,并且我也使用CDN,但是它每月大约增长1万个用户.

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.

如果用户超过了20Mb的限制,我需要发送电子邮件通知用户.

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

现在,在Amazon S3中,我们只有一个存储桶,我为每个用户使用文件夹".

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

谢谢!

推荐答案

您的问题的答案将基于观点.但是,如果您想走那条路,可以为每个用户创建一个容器并创建虚拟目录.您可以在此处了解更多信息: https://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-how-to-use-blobs/#naming-and-referencing-containers -和blobs

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

这篇关于在Azure中为每个用户创建一个容器存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆