7 May 2012 3:52 AM #1
Request Batching in DirectJNgine
I am trying to evaluate functionality of Request Batching in DirectJNgine, but I am not finding any example about this. So, I am not getting any clear idea about Request Batching in DirectJNgine. If any body provides any such link, it will be very helpful for me.
16 May 2012 3:16 AM #2
There is nothing you have to do with DJN to use batching, it works out of the box.
All you have to do is configure ExtJs itself adequately: check the RemotingProvider.enableBuffer documentation. Set it right, and it will work.
Now, DJN provides an optimization no other provider has, as far as I know: you can execute several batched request in separate threads for better performance (nice in a 4-core/8-thread machine). Read the DJN documentation for more info.Pedro Agulló, Barcelona (Spain) - pagullo.soft.dev at gmail.com
Agile team building, consulting, training & development
DirectJNgine: http://code.google.com/p/directjngine - Log4js-ext: http://www.softwarementors.com/projects/p/log4js-ext/
23 May 2012 11:37 PM #3
Requests not batching through RemotingProvider.enableBuffer
I tried batching requests fired in 60 seconds through RemotingProvider.enableBuffer but in Firebug I can still see different requests.
My code goes here :
type : 'remoting',
enableBuffer : 60000
Please tell if I am missing out something or any other way through which I can batch my requests.
Thanks & Regards,
24 May 2012 10:49 PM #4
I tried sending 61 requests to the server with a sleep of 20 secs. All requests are getting batched even without implementing enablebuffer.
And if I set buffer value to 10 secs and timeout value to 15 sec. then too the requests are getting batched, which should ideally get a timeout as there was a sleep of 20 secs.
There does not seem any difference between the two cases mentioned above.
But does that guarantee that the requests will always get batched even if I do not implement enablebuffer??
Plzzz plzzz help. If anyone has implemented enablebuffer, plzz provide a sample.