The distinction between the API applications and heavy computing?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
10 views
Is NodeJS (v8 and later) app. There are two parts - API for working with the app and the part that is responsible for complex, long, heavy computation, which takes a lot of resources. These computations of course are performed asynchronously and do not depend on the API, but they are still taxing the system as a whole, affecting the speed of response from the API. Question: how to divide these two parts to resursosnabzheniya asynchronous operation did not touch the resources the API?
by | 10 views

2 Answers

0 like 0 dislike
2 options:
  1. calculations to put on a separate server
  2. any way to "slow down" calculation, so they don't interfere with the rest. If this is Your server, then virtualization will help


Win, I think a separate server is obvious
by
0 like 0 dislike
run them on two different servers or VPS
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
7 answers
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
0 comments
35,406 users