+ 1
What's the best microservice to use to develop an API that can get two users request and process it in less than 10 second.
I want to develop an API that can get multiple users request and process it in less than 100 milliseconds.
3 ответов
+ 4
Node.js single thread callback handling is best for fast multi API access.
+ 4
if its just fetching data over multiple end points with light processing then Nodejs will be totally Awesome and it would only take single thread to do so.
But if there is heavy processing to be done before serving results, then the asynchronous tasks will be delayed significantly in Nodejs.
so better to create new threads (child processes) to handle heavy processing or use webworker libraries to do so.
btw from Node 10.5 multithreading support is available too, but still in experimental phase.
so in that case go with .net (C#), java or something.
+ 2
Use multi-threads.