我有什么考虑考虑开发.NET应用程序,以帮助降低成本和Azure的优化性能是什么时候? [英] What considerations do I have to take into account when developing a .NET application to help reduce cost and optimize performance in Azure?

查看:98
本文介绍了我有什么考虑考虑开发.NET应用程序,以帮助降低成本和Azure的优化性能是什么时候?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我期待在部署.NET应用程序到Windows Azure但是我不确定我需要优化,以降低成本和提高性能。该网站已经使用MVC 4开发,大量利用AJAX的查询JavaScript框架和数据在SQL举行。似乎没有要上的事情的详细指南我应该看或考虑如视图状态与服务器端存储例如SQL中,表存储等存储类型包括例如串姓名,日期等,例如二进制JPEG,JPG等

I am looking at deploying a .NET application to Windows Azure however am unsure what I need to optimize to reduce cost and improve performance. The site has been developed using MVC 4, heavily utilizes javascript frameworks for AJAX queries and data is held in SQL. There doesn't appear to be a detailed guide on things I should be looking at or considering e.g. viewstate versus server side storage e.g. SQL, table storage, etc. The type of storage includes strings e.g. names, dates, etc, binary e.g. jpeg, jpg, etc

推荐答案

每一个应用程序是不同的,所以你能做的最好的事情就是尽量估算自己的使用情况,然后花一些时间与的 Azure的成本计算。一旦你已经部署了应用程序,一定要看看你的月度发票。微软会很乐意告诉你他们是怎么收费你,然后你就会有硬数据从工作。

Every app is different, so the best thing you can do is try to estimate your own usage and then spend some quality time with the Azure cost calculator. Once you've deployed the app be sure to look at your monthly invoices. Microsoft will happily tell you what they're charging you for, and then you'll have hard data to work from.

这是说,在我的经验中运行的典型的Web应用程序,真正的问题是计算实例(网络/辅助角色)的唯一成本。运行一个小的计算实例一个月等于在SQL Server存储15GB,425 GB的Azure存储,或使用470 GB的带宽。相比其他产品Azure的一个小的CPU是pretty贵,所以尽量使用就可以计算实例的数量最少,使大部分你使用的几种。

That said, in my experience running a "typical" web application the only costs that really matter are compute instances (web/worker roles). Running a single small compute instance for a month is equal to storing 15GB in SQL Server, 425 GB in Azure Storage, or using 470 GB of bandwidth. That one little CPU is pretty expensive compared to the other Azure offerings, so try hard to use the least number of compute instances you can and make the most of the ones you do use.

有其他一些简单的事情可以做,以节省钱,但请记住,切割计算实例或两人将可能比所有这些事情了。

There are a few other easy things you can do to save a money, but keep in mind that cutting a compute instance or two will probably matter more than all of these.


  1. 如果您在使用Azure诊断,创建一个存储账户只为和关闭地理冗余存储功能。这会为您节省几块钱,几乎没有努力。它还影响您的生产数据保持瓶盖记录数据。

  2. 定期清理旧的记录数据。

  3. 尝试避免保存大量数据的SQL。如果你有大的文件,图片等,将它们移动到Azure存储(表或斑点),如果你能。

  4. 如果你有一些后台处理的事,你可以添加到您的网页,而不是角色旋转了一个单独的工作角色。

  5. 考虑使用预留实例或得到一个批量许可协议,如果您有资格获得它。

这篇关于我有什么考虑考虑开发.NET应用程序,以帮助降低成本和Azure的优化性能是什么时候?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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