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

Multiple parellel requests to a soap api are taking collectively longer time #65

Closed
super-engineer opened this issue Jul 11, 2013 · 1 comment

Comments

@super-engineer
Copy link

I'm trying to send three parallel request to a soap api. Normally each request takes around 13 seconds to complete so for three requests it takes around 39 seconds. After using parallel gem and sending three parallel requests using 3 threads it takes around 23 seconds to complete all three requests which is really nice but I'm not able to figure out why its not completing it in like 14-15 seconds. Its not an issue actually but as you know alot about parallel processing so I thought maybe you can point me in the right direction.

@grosser
Copy link
Owner

grosser commented Jul 11, 2013

The endpoint could be slower when it's hit by multiple requests at a time or maybe your network connection is bad :)
You could do a something like this to get deeper insights

puts "Start"
puts(Benchmark.realtime do
   do-api-call
end)
puts "STOP"

@grosser grosser closed this as completed Jul 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants