E
E
ettaluni2021-02-26 16:29:31
Node.js
ettaluni, 2021-02-26 16:29:31

Node js server-side?

Good day! I need to write a server application on linux to organize calculations and work with databases. Ideally, this should be some kind of daemon that performs the specified functionality, implements the interface for the user, etc. The load on the part of users is small, more on calculations in quiet mode.

The question is, is the node good for server production? I just tried it as in electron-desktop applications, and there you can even more or less do something on it. Another thing is a server and calculations, client-agent management. I don't have enough experience, except js I don't know anything. I am sure that C is ideal for both Linux and production daemons, but it will take me a long time to learn it to the level of what I can on a node (it is 100 times easier).

Is it really possible to make a demon on it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Kitaev, 2021-02-26
@deliro

Really do anything. But the node doesn't really like "calculations" if they are CPU. Especially inconveniently, it is scaled to processor cores. If you have 95% - IO tasks, then the node is quite ok. But there will also be problems with its deployment to clients (because you need a node, sic!). Golang seems to be the simplest solution, because it scales perfectly to cores, is faster than nodes and is delivered as a single binary without dependencies, it is learned in a week if you switch from other languages.

I
Ivan Shumov, 2021-02-26
@inoise

There is no language better than the one you know. This is the golden rule. Whether the code will be the best is a moot point, at this level of understanding, you still cannot get a high-quality implementation. Although it can work. Rather, the question is - do you want to spend (and how much) time learning a second language?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question