Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how event loop handels multiple request? #1295

Closed
poojaniranjane opened this issue May 23, 2018 · 2 comments
Closed

how event loop handels multiple request? #1295

poojaniranjane opened this issue May 23, 2018 · 2 comments
Labels

Comments

@poojaniranjane
Copy link

I have one question , if event loop picks request one by one then on user side it has to wait for longer time to get that o/p in case of multiple requests.
Suppose n clients send their request to one server and each request require 15 seconds then if go by logic of event loop then if will take first request from event queue and process it and then send response to client , then it will fetch 2nd one and send response so by this logic first client will get data in 15 seconds and then 2nd will get data in 30 and so on.. So how node is handling these things as i know i m interpreting something wrong.

@gireeshpunathil
Copy link
Member

@poojaniranjane - can you please review a discussion at #1118 and see if it covers your queries? If there are additional questions I am happy to clarify!

@gireeshpunathil
Copy link
Member

the connected links should cover what you are asking for, if not please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants