<div dir="ltr">Hi guys,<div><br></div><div>In my app I have one scenario where we render huge reports. These reports could have say... 20/30 large tables as well as quite some charts and some other report elements. </div><div><br></div><div>Previously we were using a single ajax request to generate the whole report html but that was a pain because client machine would have a really large TTFB. So I was wasting CPU and network at client machine while waiting. </div><div><br></div><div>What we did now is that each report element renders a title + spinning while and does an ajax request which, on success does a #replaceWith:  with the real contents. The idea is to show the report as soon as possible and start replacing spinning wheels with real contents as soon as content is ready. That way I maximize CPU and network on client side. </div><div><br></div><div>The second thing is that making this on AJAX calls, that would end up on different Gems on my GemStone which was very performant. I have 10 Seaside gems on a 8 cores CPU so all those AJAX request were load balanced via nginx over the 10 seaside gems, which on the other hand were split across all cores. Previously, with a single request, only one Gem took care and hence only one CPU core was used. </div><div><br></div><div>This change was nice and improved performance. However, when I analyze requests, I see that I have many that are "Stalled". And yeah, on Chrome, they are all stalled when there is more than 6 requests to the same location. </div><div><br></div><div>To conclude, it looks like i am doing what is called "Loading page content with many Ajax requests" [1]. But I still don't find an easy workaround. I would like to be able to use my 10 Gems over the 8 CPU cores....</div><div><br></div><div>Any idea?</div><div><br></div><div>Thanks in advance,</div><div><br></div><div><br></div><div>[1] <a href="http://sgdev-blog.blogspot.com.ar/2014/01/maximum-concurrent-connection-to-same.html">http://sgdev-blog.blogspot.com.ar/2014/01/maximum-concurrent-connection-to-same.html</a><br></div><div><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br></div>
</div></div>