N
N
Nikolay372020-08-10 17:18:38
Node.js
Nikolay37, 2020-08-10 17:18:38

How does the server process requests, synchronously or asynchronously?

Using the API, I send several requests, how does the server process them: does it queue them up and process each one in turn, or does it asynchronously respond to all at once?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2020-08-10
@Nikolay37

depends on the code: it can be parallel processing, it can be sequential.
read about blocking operations.

V
Vitaly, 2020-08-10
@vshvydky

https://nodejs.org/en/docs/guides/event-loop-timer...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question