It is true that node.js can only receive or respond to one request at a time, however it can process multiple requests at a time.
For example, let's say you have a node.js application that is a priori rest, and each query results in a database call, with the exception of endpoint C. The rest of the api has 3 endpoints.
Endpoint A: It takes 3 seconds to work with the database
Endpoint B: It takes 2 seconds to talk to the database
Endpoint C: Doesn't talk to the database, it just returns static text.
. , , .
, , 10 , , :
ABCBCCAABC
, :
REC:A
REC:B
REC:C
RESP:C
REC:B
REC:C
RESP:C
REC:C
RESP:C
REC:A
REC:A
REC:B
REC:C
RESP:C
// 2 seconds later
RESP:B
RESP:B
RESP:B
// 1 second later
RESP:A
RESP:A
RESP:A
C , . B, A, B , A.
B A , , , .
D, , 6 , :
ADABC
REQ:A
REQ:D
// 6 long seconds later...
RESP:D
REQ:A
REQ:B
REQ:C
RESP:C
// 2 seconds later...
RESP:B
// 1 second later...
RESP:A
RESP:A
D javascript, . 1, , , - api.