简体   繁体   English

如何在Azure上同步上载的文件?

[英]How to synchronize uploaded files on Azure?

Probably a stupid question, but I am new to Azure and it seems there is a lot of documentation on the topic, which is intimidating in the beginning. 可能是一个愚蠢的问题,但是我是Azure的新手,似乎有很多关于该主题的文档,一开始就令人生畏。

I have a small website where users can upload files and then some content will be displayed in the webpage. 我有一个小型网站,用户可以在其中上传文件,然后某些内容将显示在网页中。 My question is, if the site is hosted in Azure, on multiple machines, how can I synchronize these files across machines? 我的问题是,如果该站点托管在Azure中,则在多台计算机上,如何在这些计算机之间同步这些文件? Or, how can I do this without having duplicates? 或者,如何在没有重复的情况下做到这一点?

How is this normally done? 通常如何做? I can't be the first with this problem. 我不能第一个遇到这个问题。

Recommended approach is to use blob storage for storing user generated content. 推荐的方法是使用blob storage来存储用户生成的内容。 If you search here, you will find plenty examples regarding the benefits of using blob storage. 如果在此处搜索,您将找到许多有关使用Blob存储的好处的示例。 One of the biggest benefit is that you're not constrained by the size. 最大的好处之一就是您不受大小的限制。 Each storage account today can store 500 TB of data whereas if you store the files locally in your Web App, there's a limit on the disk size. 如今,每个存储帐户都可以存储500 TB的数据,而如果将文件本地存储在Web App中,则磁盘大小是有限的。

Hosting on multiple machines is totally transparent for developers. 对于开发人员而言,在多台计算机上托管完全透明。

Work with it like you will do on unique machine 像在独特的机器上一样使用它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM