I
I
Ilya Pavlov2018-04-27 15:39:35
Node.js
Ilya Pavlov, 2018-04-27 15:39:35

Separation of application API and heavy calculations?

I have a NodeJS (v8 and newer) application. There are two parts - an API for working with the application and a part responsible for complex, long, heavy calculations that take a lot of resources. These calculations are themselves asynchronous and do not depend on the API, but they still load the system as a whole, affecting the speed of the API response. Question: how to separate these two parts so that resource-intensive asynchronous operations do not touch the resources allocated for the API?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vanya Zyuzgin, 2018-04-27
@PiCoderman

2 options:
The win, I think, in a separate server is obvious

P
Puma Thailand, 2018-04-28
@opium

run them on two different servers or vps

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question