Windows Azure 本地测试

发布于 2024-12-07 18:20:38 字数 165 浏览 0 评论 0原文

我最近正在评估 Windows Azure。我发现的问题之一是,即使应用程序处于测试阶段,Azure 也会在部署应用程序后立即开始收费。

我想问现有的Azure,你们的测试有多少是在本地完成的,有多少是部署后完成的? Azure 是否提供任何本地测试 Web 服务的方法?

非常感谢。

I am recently evaluating Windows Azure. One of the problems I found is that Azure start charging as soon as the app is deployed even if it is in the testing stage.

I want to ask existing Azures how much of your tests are done locally and how much are done after it is deployed? Does Azure provide any means of testing web services locally?

Many thanks.

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

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

发布评论

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

评论(2

樱娆 2024-12-14 18:20:38

是的,Azure 提供了一个很大程度上(但不是完全)模仿 Azure 部署环境的模拟框架。这通常足以进行测试。

但是,测试部署的成本可以在一定程度上得到控制:

  • 可以部署比大型实例便宜得多的“超小型”实例,但会牺牲吞吐量 - 除非您正在进行负载测试,否则这是不可能的通常是一个问题

  • 您通常不需要有多个实例部署一个角色,通常只需要一个角色,除非您在负载下遇到重大并发问题

  • Azure 的一些成本是数据流量,这对于测试实例来说显然会更便宜

  • 没有必要让测试实例永久可用。它们可以随意拆除或重新部署;如果您的环境变得复杂,这可以通过持续集成引擎以编程方式完成。

在实践中,我们发现与我们的开发人员和替代方案(即配置和维护我们自己的数据中心)的成本相比,测试实例的成本相对微不足道。

特别是,能够在几分钟内快速启动直接模拟生产的测试环境是一个非常强大的功能。

Yes, Azure provides an emulation framework that largely (but not completely) mimics the Azure deployment environment. This is usually sufficient for testing.

Costs of test deployments can be controlled somewhat, however:

  • It's possible to deploy "extra-small" instances that are significantly less expensive than larger instances, at the expense of throughput - which unless you're doing load testing isn't usually an issue

  • You won't generally need to have multiple instances of a role deployed, just one will usually do, unless you have major concurrency issues under load

  • Some of the cost of Azure is in data traffic, which will obviously be less expensive for test instances

  • It's not necessary to have test instances permanently available. They can be torn down or re-deployed at will; if your environment becomes sophisticated this can be done programmatically by a continuous integration engine.

In practice we're finding that the cost of test instances is relatively insignificant compared to the cost of our developers and the alternative, which would be to provision and maintain our own data centre.

In particular, being able to quickly spin up a test environment that is a direct mimic of production in a few minutes is a very powerful feature.

递刀给你 2024-12-14 18:20:38

Windows azure 已经提供了在本地进行测试的选项。

Microsoft Azure 存储模拟器提供了一个模拟 Azure Blob、队列和表服务以用于开发目的的本地环境。使用存储模拟器,您可以在本地针对存储服务测试您的应用程序,而无需创建 Azure 订阅或产生任何费用。当您对应用程序在模拟器中的运行情况感到满意时,您可以转而使用云中的 Azure 存储帐户。

要获得完整的详细信息,请查看下面的链接。

https://azure.microsoft.com/en-in/文档/文章/存储使用模拟器/

Windows azure already provide option to do testing locally.

The Microsoft Azure storage emulator provides a local environment that emulates the Azure Blob, Queue, and Table services for development purposes. Using the storage emulator, you can test your application against the storage services locally, without creating an Azure subscription or incurring any costs. When you're satisfied with how your application is working in the emulator, you can switch to using an Azure storage account in the cloud.

To get complete detail please check link below.

https://azure.microsoft.com/en-in/documentation/articles/storage-use-emulator/

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