This is a creation in Article, where the information may have evolved or changed.
Go
Golang's birth has a strong purpose, so the foundation seems very calm, the future of the language for high performance, high concurrency optimization is also more handy. The main golang can actually solve the actual problem, and the memory and CPU usage is much better than node. For this reason, Golang is a good choice for a server with a large number of requests.
From a large project point of view, go is the end of the burst Node. Performance, memory overhead, static typing, handling of async, exception handling, debugging, system stability, tool chain maturity, and so on, are go-to-dominate.
The goal of GO is to improve the management of existing programming languages such as library dependencies (dependency), which are called repeatedly by applications. Because of the parallel programming pattern, this language is also designed to solve multiprocessor tasks. Programs that are compiled with go can be as fast as C or C + + code, and more secure and support parallel processes.
node. js
node is better at dependency processing, and NPM is excellent at relying on version management (go dependencies cannot be specified, but also with unofficial tools), and node community activity is better than go.
Node in the site, especially the need for direct user-oriented HTTP server This aspect, there is a natural advantage, that is the front and back of the language unity. On the one hand, it can reduce the mental cost of switching language, improve the efficiency of developers, on the other hand can realize the front-end sharing template, so as to achieve the first screen server rendering, local update browser rendering architecture, improve the first screen loading speed.
If you do a site backstage is a simple CRUD application, or a product prototype, or you also want to take care of the front end, Node will be a better choice, but if your background is very complex, you need to distinguish between various services, data analysis, distributed clusters and so on, it is definitely the go.
This article from: CSDN blog
Thanks to the author: qizhiqq
View Original: Comparison of Go and node. js
View Original: http://www.zoues.com/2016/10/20/golang%e8%af%ad%e8%a8%80%e5%92%8cnode-js%e7%9a%84%e5%af%b9%e6%af%94/