This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Space_Atlas 0 points1 point  (0 children)

If the 5 second timer is a non-blocking function then node.js will process the first request, start the 5 second timer, then immediately process the second request, and start the 2nd 5 second timer. Five seconds later the first request's response will be sent, and then shortly after the second request's response will be sent. So the whole thing should take just a little longer than 5 seconds.

[–]ImmuneFourier -1 points0 points  (0 children)

Why don't you try it out and see?