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
Request does not fire requests in parallel? #101
Comments
Same question was asked and answered on stackoverflow: http://stackoverflow.com/questions/7985218/node-js-request-js-not-firing-requests-in-parallel/7985374 |
Yup, same person. Just trying to cover my bases. It appears you responded as well. I'll continue the conversation with you on SO. |
closing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have an app that uses request to grab API data from an internal API.
I was doing some tests, and it seemed that our app was scaling poorly under heavy load, and API responses were getting incrementally slower.
I deduced this down to the request call we're using, and it looks like request is probably firing these in a queue, not all at once. Here's a test script that shows this behavior:
(logger.js is just a logging tool to print timestamps & set up log levels).
And, a simple test of google shows the incremental slowdown:
Why does this happen? Is there a config option I missed that will make the requests all fire at once?
I'd hate to have to ditch request as I love it so much, but this is a showstopper for this project.
The text was updated successfully, but these errors were encountered: