Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Multithreading for queued request

    Hi,

    in our application we send requests in a queue using RPCManager and on the server every request from the queue calls a DMI and finally from a DMI we call a rest service. In your doc is written:

    https://www.smartclient.com/smartgwt...QueueCallback-
    Order of Execution
    When the Smart GWT Server framework receives a queued request, it will process all requests, in order, in a single thread, before any response is sent to the client. All client-side actions related to queued requests, such as callbacks firing on completion, likewise happen in queue order, after all server-side processing has taken place.
    My question is: is it possible with SmartGWT that every request in a queue will be processed on the server by it's own thread ?

    Thanks

    We are using: SmartClient Version: v10.0p_2016-06-25/PowerEdition Deployment (built 2016-06-25)
    Last edited by geletkaf; 11 Aug 2016, 04:04.

    #2
    No, there is no setting or similar to automatically multi-thread the requests (which would cause performance degradation in almost all cases).

    To execute client-initiated requests in parallel, don't use queuing.

    To execute server-initiated requests in parallel, start your own thread and follow the rules for Standalone DataSource usage (because you cannot reuse the RPCManager and other objects from the original request thread).

    Comment

    Working...
    X