Hybrid View

  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    37
    Vote Rating
    0
    jksnu is on a distinguished road

      0  

    Default Request Batching in DirectJNgine

    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.

  2. #2
    Ext JS Premium Member
    Join Date
    May 2009
    Location
    Barcelona (Spain)
    Posts
    218
    Vote Rating
    19
    pagullo will become famous soon enough pagullo will become famous soon enough

      0  

    Default


    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)
    Agile team building, consulting, training & development
    DirectJNgine: http://code.google.com/p/directjngine - Log4js-ext: http://www.softwarementors.com/projects/p/log4js-ext/

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    23
    Vote Rating
    0
    shwetapro is on a distinguished road

      0  

    Default Requests not batching through RemotingProvider.enableBuffer

    Requests not batching through RemotingProvider.enableBuffer


    Hi Pagullo,

    I tried batching requests fired in 60 seconds through RemotingProvider.enableBuffer but in Firebug I can still see different requests.

    My code goes here :

    Ext.Direct.addProvider(Ext.app.REMOTING_API, {
    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,
    Shweta

  4. #4
    Sencha User
    Join Date
    Apr 2012
    Posts
    23
    Vote Rating
    0
    shwetapro is on a distinguished road

      0  

    Default


    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.

    Shweta

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi