在生产环境中使用node.js.

时间:2022-08-27 23:14:38

I've recently begun hearing a great deal about Node.js. While I understand a few things that it's able to do, namely create a web server, I'm wondering if you could provide me with a solid reasoning behind using this functionality in a production environment.

我最近开始听到很多关于Node.js.的内容。虽然我理解了它可以做的一些事情,即创建一个Web服务器,但我想知道你是否可以在生产环境中为我提供一个可靠的推理。

This article made a solid case for using Node.js as a development tool, essentially stating that it can provide the usability of a backend environment without needing backend experience. I've also heard of many developers using Node.js in production projects (Codepen for example), but I simply don't understand how it can be useful when there are established web servers out there such as a LAMP stack.

本文为使用Node.js作为开发工具奠定了坚实的基础,本质上说明它可以提供后端环境的可用性而无需后端体验。我也听说过很多开发人员在生产项目中使用Node.js(例如Codepen),但是当我们在那里建立了Web服务器(如LAMP堆栈)时,我根本不明白它是如何有用的。

I would love to invest the time into learning about Node.js due to its growing popularity, but because I do have a fairly solid backend foundation, I'm curious if it's necessary.

我很想花时间学习Node.js,因为它越来越受欢迎,但因为我确实有一个相当坚实的后端基础,我很好奇是否有必要。

In short, what are some of the most useful aspects of Node.js and why would someone need to use in a production environment?

简而言之,Node.js的一些最有用的方面是什么以及为什么有人需要在生产环境中使用?

2 个解决方案

#1


19  

Perhaps the best answers can come from large companies who are using Node successfully in production.

也许最好的答案可能来自在生产中成功使用Node的大公司。

Why Walmart is using Node.js

为什么沃尔玛使用Node.js

How we build eBay's first Node.js application

我们如何构建eBay的第一个Node.js应用程序

How LinkedIn used Node.js and HTML5 to build a better, faster app

LinkedIn如何使用Node.js和HTML5构建更好,更快的应用程序

Scalability is often the big reason. End to end javascript is also a popular answer. Also Node is good at making some potentially complicated "real-time" scenarios almost trivial when using a library like socket.io.

可伸缩性通常是最重要的原因。端到端javascript也是一个流行的答案。在使用像socket.io这样的库时,Node也很擅长使一些可能复杂的“实时”场景变得微不足道。

And here is a list of companies using Node with a short blurb on what they use it for.

以下是使用Node的公司列表,其中简要介绍了它们使用的内容。

#2


1  

The main company behind Node.js, Joyent, is tackling this question head-on with their recent roadshow "Node on the Road". They have collected a number of interesting testimonials of why big companies (Dow Jones, Walmart, Yahoo, etc) are using node in production. Check out their videos section for more details.

Node.js背后的主要公司Joyent正在通过他们最近的路演“Node on the Road”正面解决这个问题。他们收集了许多有趣的证据,说明为什么大公司(道琼斯,沃尔玛,雅虎等)在生产中使用节点。查看他们的视频部分了解更多详情。

#1


19  

Perhaps the best answers can come from large companies who are using Node successfully in production.

也许最好的答案可能来自在生产中成功使用Node的大公司。

Why Walmart is using Node.js

为什么沃尔玛使用Node.js

How we build eBay's first Node.js application

我们如何构建eBay的第一个Node.js应用程序

How LinkedIn used Node.js and HTML5 to build a better, faster app

LinkedIn如何使用Node.js和HTML5构建更好,更快的应用程序

Scalability is often the big reason. End to end javascript is also a popular answer. Also Node is good at making some potentially complicated "real-time" scenarios almost trivial when using a library like socket.io.

可伸缩性通常是最重要的原因。端到端javascript也是一个流行的答案。在使用像socket.io这样的库时,Node也很擅长使一些可能复杂的“实时”场景变得微不足道。

And here is a list of companies using Node with a short blurb on what they use it for.

以下是使用Node的公司列表,其中简要介绍了它们使用的内容。

#2


1  

The main company behind Node.js, Joyent, is tackling this question head-on with their recent roadshow "Node on the Road". They have collected a number of interesting testimonials of why big companies (Dow Jones, Walmart, Yahoo, etc) are using node in production. Check out their videos section for more details.

Node.js背后的主要公司Joyent正在通过他们最近的路演“Node on the Road”正面解决这个问题。他们收集了许多有趣的证据,说明为什么大公司(道琼斯,沃尔玛,雅虎等)在生产中使用节点。查看他们的视频部分了解更多详情。