Weird performance of a rails + sinatra app -


i have rails application , sinatra application. sinatra application written lookup timezone based on either zip or ip. sinatra application uses geoip_city gem lookup using ip , has own database zip lookup. rails app talks sinatra application timezone lookup.

we worked on rails application's performance , have improved extent. tested using jmeter, 1000 threads running forever 60 ramp-up. performed well. tested sinatra app similar numbers , performing enough. however, when test piece rails app talks sinatra app timezone lookup, after ramp period, timeout errors. timezone lookup request made rails app sinatra app times out. if reduce number of threads in jmeter 100, application performs fine.

i wonder why happens if rails app , sinatra application performing fine individually. reduces performance when rails , sinatra application chained together. how supposed be?

as @troelskn has rightly pointed out in comment, both applications competing resources. moving 1 of them different server dedicated resources seems have solved problem.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -