ASP.NET MVC 与 WebForms:速度和架构比较 [英] ASP.NET MVC vs WebForms: speed and architecture comparison

查看:32
本文介绍了ASP.NET MVC 与 WebForms:速度和架构比较的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我和我的一位朋友发生了争执,他是一家相当大的互联网公司的架构师.基本上他是说 ASP.NET MVC 不适用于大型企业应用程序,它不如 WebForms 灵活,并且 MVC 应用程序将比 Web 表单应用程序慢.

I had an argument with one of my friends who is an architect at a pretty large internet company. Basically he was saying that ASP.NET MVC is not for large-scale enterprise applications, that it is not as flexible as WebForms, and that an MVC app will be slower than a web forms app.

根据我自己使用 MVC 的经验,我可以说它更灵活,重量更轻,因为没有页面生命周期、视图状态等.因此它至少应该加载更快.据我所知,MVC 是为大中型流量而设计的.

From my own experience working with MVC, I can say that it is more flexible and it is lighter weight because there is no page life cycle, viewstate, etc.. It should thus load faster at the very least. As far as I know, MVC is designed for medium to large scale traffic.

大家怎么看?有没有人比较过速度和性能?ASP.NET MVC 是否比 ASP.NET WebForms 更适合大型应用程序?

What do you guys think? Has anyone compared speed and performance? And is ASP.NET MVC better for large scale apps than ASP.NET WebForms?

简而言之,在这两种选择之间,您会选择哪个用于大型企业应用程序?

In short, between these two choices, which would you choose to use for a large scale enterprise application?

推荐答案

  • 开发速度:WebForms
  • 性能速度:MVC
  • 易于使用:WebForms(通常)
  • 单元测试:MVC(通常)
  • 这篇关于ASP.NET MVC 与 WebForms:速度和架构比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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