英文:
What is a good use of Azure FileShare? Can it be a good solution to store the file in Azure vs storing the file in Blob storage
问题
我需要评估使用Azure FileShare并使用Fileshare存储来上传/下载文件。应用程序的当前功能允许用户从本地计算机上传文件,还可以从ISS根文件夹下载文件。
现在转移到云端,我们不想在IIS中创建和使用文件夹,而是想要使用Azure中的某项服务。所以我们有Azure存储。以前我使用过Azure Blob存储来上传和下载文件。现在想尝试FileShare,但在我看来,它就像是一个在网络上共享文件夹,Azure FileShare将充当文件服务器。
所以简而言之,我的问题是,如果我的应用程序托管在Azure中,我们使用Azure AD为应用程序进行身份验证。我想上传/下载文件,Fileshare是否是一个好选择,还是Blob存储可以满足需求?让我们不考虑成本。
英文:
I need to evaluate the use of Azure FileShare and use the Fileshare storage to upload/download the files. The current functionality of the application is where user can upload a file from local machine and can also download the file from ISS root folder.
Now moving into cloud we do not want to create and use a folder in IIS rather want to use one of the service in Azure. So we have Azure Storage. Previously I have used Azure Blob storage to upload and download the files. Now want to try out FileShare but it is seem to me it is like a share folder over the network where Azure FileShare would work as a file server.
So just to make short. My question is if my app is hosting in the Azure and we do have Azure AD and using Azure AD authentication for our apps. I want to upload/download file, would Fileshare be a good option or Blob storage would server the purpose? Let's not consider cost.
答案1
得分: 1
两个关键区别是“访问协议”和“集成”。我通常会选择与我编写的应用程序匹配的正确存储服务(除非存储能力有很大的非功能性需求)。还有一些其他特性区分因素,例如 Blob 支持存储层(热、冷、凉、存档),这在高容量、成本敏感的情况下更相关。
Azure Files 使用 NFS 和 SMB,Blob 不使用。Blob 通常需要特定的客户端库来进行交互。
Azure Files 与 Azure 容器实例 和 容器应用 具有独家集成。
Azure Blob 和 Files 都与 Web App for Containers 集成得很好。
Azure Blob 存储与 Azure Functions 高度集成,Azure Files 则没有。
Azure Blob 和 Files 都通过 CSI 驱动程序与 Azure Kubernetes 服务集成得很好。
在你的应用程序中,负责上传和下载文件,我会首选 Azure Blob Storage。但你没有提到你将使用哪个计算服务,也没有提到任何非功能性需求或有关应用程序的其他背景信息。这是经典的架构问题,“这取决于具体情况”。
英文:
The two key differences are that of access protocol
and integration
. I'd typically use the right storage service to match with the compute for the app I was writing (unless there were big NFR's for the storage capability).
There are some other feature differentiators like the fact Blob supports storage tiers (hot, cold, cool, archive) which will be more relevant in high volume, cost conscious scenarios.
Azure Files operates on NFS and SMB, Blob does not. Blob typically requires a specific client library to broker interactions.
Azure Files has exclusive integration with Azure Container Instances, Container Apps.
Azure Blob and Files both integrate well with Web App for Containers
Azure Blob storage has tight integration with Azure Functions, Azure Files does not.
Azure Blob and Files both integrate well with the Azure Kubernetes service through CSI drivers.
In your scenario of your own app brokering upload and download of files, I'd have an initial preference to Azure Blob Storage. However you don't say which compute service you'd be using, any NFR's or additional context on the app. It's the classic architectural "it depends".
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论