使用 Azure Blob 存储需要计算吗?

发布于 2025-01-02 05:27:06 字数 337 浏览 3 评论 0原文

我有一个在共享主机上运行的 ASP.NET 应用程序,并且想要使用 Windows Azure blob 存储来存储图像(我的共享主机的存储空间有限)。我的应用程序将从客户端 PC 上传和下载这些图像。

我创建了一个新的云项目来测试这一点,并使其与离线存储模拟器成功配合使用,但我注意到该云项目有一个 Web Worker 角色,我相信该角色在部署到 Azure 时需要一个计算实例。 Azure 存储非常便宜,但如果我的应用程序需要一个计算实例来访问它,那么即使是最小的实例,它也会变得更加昂贵。

我的问题是 - 我是否需要一个计算实例才能将文件上传和下载到 blob 存储,或者我的应用程序可以直接与 blob 存储通信吗?

I have an ASP.NET application running on shared hosting and want to use Windows Azure blob storage to store images (my shared hosting has limited storage). My application will upload and download these images from/to the client PC.

I created a new cloud project to test this out and got it working successfully with the offline storage emulator, but I noticed that the cloud project has a web worker role which, I believe, needs a compute instance when deployed to Azure. Azure storage is very cheap, but if I need a compute instance for my application to talk to to access it then it becomes much more expensive, even with the smallest instance.

My question is - do I need a compute instance in order to upload and download files to blob storage or can my application talk directly to the blob storage?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

好久不见√ 2025-01-09 05:27:06

简短回答:您不需要计算实例即可与 Azure 存储通信。您可以直接从客户端应用程序或其他提供商托管的应用程序与 Azure 存储进行通信。

您也不需要在 Visual Studio 中创建新的云项目即可利用 Azure Blob 存储。只需引用适当的 .DLL(Azure 存储客户端)即可开始操作。

Short answer: You do not need compute instances to talk to Azure storage. You can talk to Azure storage directly from client apps or from apps hosted by other providers.

Nor do you need to create a new Cloud project within Visual Studio to take advantage of Azure blob storage. Simply, reference appropriate .DLLs (Azure Storage Client) and you're good to go.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文