简体   繁体   English

Node.js用于“传统”网站

[英]Node.js for “traditional” sites

I'm digging into Node.js now and the whole idea seems brilliant to me. 我现在正在深入研究Node.js,整个想法对我来说似乎很棒。 But I'm interested in what the benefits of using Node.js are when developing "traditional" sites with a bit of AJAX and no realtime features. 但是我对使用Node.js在开发具有一点AJAX且没有实时功能的“传统”网站时的好处感兴趣。 When I say traditional, I mean the sites that one usually builds using MVC frameworks on platforms like PHP, ASP.NET, etc. 当我说传统时,我指的是通常在PHP,ASP.NET等平台上使用MVC框架构建的站点。

I know that the Express framework is popular, but the question is more about what I would gain by switching to Node.js rather than simply "Can I do MVC in Node?". 我知道Express框架很受欢迎,但问题更多的是通过切换到Node.js而不是简单地“我可以在Node中做MVC吗?”来获得什么。

Node has the advantage of 节点具有优势

  • having a rich open source community with third party modules that solve most problems 拥有丰富的开源社区,第三方模块可以解决大多数问题
  • having a low level API with a minimal amount of "default" bloat 具有低级API,具有最小量的“默认”膨胀
  • reducing language context switching 减少语言上下文切换
  • having a decent level of performance 具有相当水平的表现
  • allowing you to manipulate the HTTP server programatically within your application 允许您在应用程序中以编程方式操作HTTP服务器

I guess this url: How to decide when to use Node.js? 我猜这个网址: 如何决定何时使用Node.js? -is all you need.I am making this as community wiki. - 这就是你所需要的。我正在将其作为社区维基。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM