Results 1 to 5 of 5

Hybrid View

  1. #1
    Dario, I'm sorry for the late reply.

    I think that's clear now! I wasn't too far from the solutions. Would you suggest using a queue instead of the data_adapter_pool solution?

    Is there a recommended way for our use-case, or is this new territory for LightStreamer?

    Cheers!

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,092
    A subscribe operation performing a HTTP call is a case that we consider, and this is why we provide the solution of the DATA pool to tackle the case in a simple way.
    Enabling the DATA pool is not very different from working asynchronously through a custom queue.

    From the client point of view there is no difference, because the client never waits for the completion of the subscription operation.
    Slow subscribes obviously may delay the arrival of data, but this can't be avoided in both ways.
    The main problem we see is when a slow subscribe causes the postponement of the execution of other subscribes, either for the same item or for other items.

    On this respect, a custom queue just allows for more control.
    For instance, the size of the DATA pool is preconfigured, whereas with a custom queue you can choose at any time how many subscription operations to run concurrently.
    Also, with a custom queue you still have the problem of handling possible sequences like [ subscribe() - unsubscribe() - subscribe() ] for the same item;
    but perhaps you may have devised a way to run such operations in parallel.

    In general, we don't suggest the use of a custom queue unless the use of the DATA pool proves to be too limited.

 

 

Similar Threads

  1. shutdown method of DataProvider?
    By pluczak in forum Adapter SDKs
    Replies: 5
    Last Post: April 16th, 2018, 04:26 PM
  2. Operation detailed in wrong way
    By EWANG in forum Client SDKs
    Replies: 1
    Last Post: September 22nd, 2009, 02:35 PM
  3. Replies: 3
    Last Post: February 12th, 2009, 10:31 AM
  4. Data Adapter's subscribe() method not getting called
    By CitiMan in forum Adapter SDKs
    Replies: 8
    Last Post: November 30th, 2006, 04:26 PM
  5. .NET DataProvider
    By gavenb in forum Adapter SDKs
    Replies: 1
    Last Post: September 20th, 2006, 10:10 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 09:59 PM.