V
V
VamDam092019-10-12 13:53:02
go
VamDam09, 2019-10-12 13:53:02

Is there any benefit to using Golang instead of Node.js?

I read a book on Golang, looked at the areas where most companies use it (namely, an asynchronous chat layer). I got the impression that this is the same niche that node.js once occupied
. Are the golang and node.js spheres really the same? And is there a performance benefit of golang over node.js?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
O
OnYourLips, 2019-10-12
@OnYourLips

The question is debatable.
Personally, I think that they have the same main scope (web services without bulky business logic), and go looks better in it.
Another big area is JS desktop applications. Go will not replace.
And a small area: tools for front-end developers, such as yarn or webpack. It won't replace either.

E
Evgeny Mamonov, 2019-10-12
@EvgenyMamonov

Performance is a good thing, the first place you will see a huge gain over Nodejs is the amount of memory consumed. And when you have a high load and you need more than one server, then you will have to take a lot more servers for the node than for Go.
Here is what the creator of Nodejs himself writes about Go vs Nodejs /

G
grinat, 2019-10-12
@grinat

In those companies where I worked and where there was go, they wrote full-fledged microservices in go instead of monoliths that were in java / php / delphi. The goal was to completely get rid of java/php/delphi and leave only go. And I can’t say anything good about the node, although I had a chance to work with it a lot, the node is a good thing to quickly file mvp, otherwise it’s a piece of shit. If you need mvp, then choose a node and write in js, if you need a full-fledged product, then don’t even think, neither typescript, nor loopback, nor nestjs will save you, there is a problem in the entire ecosystem, which consists of low-quality shit and mutually exclusive paragraphs , all this will constantly have to either fork and support, or fuck with it.

E
Evgeny, 2019-10-16
@bat

It seems to me that in this matter it is necessary to proceed from a specific task. For cpu-bound tasks, Go looks preferable, for io-bound - with the right hands, there may not be a difference. Perhaps most importantly, the benefit will come from the tool you know.
ps
Chances are you haven't seen everything.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question