Results 1 to 2 of 2
  1. #1

    Subscription - Snapshot data and hot updates


    I am using COMMAND MODE, during retrieval of snapShot data in subscribe method, if i receive the hot updates and started to smartPush,

    1. will the Lskernal hold the publish to the clients until my snapShot retrieval is completed. ( I issue a endOfSnapshot call when my snapShot retrieval is completed )

    2. If
    Lskernal wont hold , i may loose the delivery order say stale data might be pushed to the clients. How can I ensure the snapShot is published first followed by my hot update events or a merged value is pushed to all clients

    Ex: Snapshot retrieval of ITEM_1 has stock price of 1.23 and hot update gives me a price of 1.50. The client must either receive as below,
    1. Add event (1.23) followed by UPDATE event (1.50)
    2. Kernal merges the value and send only 1.50 to the clients

    The above example is considered when there is a delay in snapshot retrieval and meanwhile hot updates are received in the adapter.

    How should i ensure in-order delivery if LightStreamer doesn't handle it. Or will it handle the delivery order.


  2. #2
    Join Date
    Jul 2006
    Hi Rajesh,
    The mechanism you need is not provided by Lightstreamer kernel and it is requested to the Data Adapter.
    The Server receives a single event flow from the Adapter.
    This means that the Adapter should take care of sending all the currently active keys (i.e. the snapshot) before sending the EndOfSnapshot signal and, subsequently, the real-time updates.
    So, some synchronization is needed and the best case is when the back-end is able to do that.

    Otherwise, if you have to ask for snapshot and real-time updates separately, your only option is to hold any real-time updates within the Data Adapter until the snapshot has arrived.
    However, by doing this, the Data Adapter should also ensure that real-time updates are really later than the snapshot.
    For instance, you should ask the back-end to provide a timestamp for both the snapshot and the real-time update values.
    In this way, after forwarding the snaphot to Lightstreamer, you should send only the accumulated real-time updates with a later timestamp.



Similar Threads

  1. Replies: 1
    Last Post: April 17th, 2015, 09:59 AM
  2. Replies: 2
    Last Post: October 25th, 2013, 11:39 AM
  3. Raw mode subscription, missing snapshot
    By Pradeep Chahal in forum Adapter SDKs
    Replies: 1
    Last Post: January 22nd, 2010, 01:57 PM
  4. Pre-Processor Snapshot vs DataAdapter Snapshot
    By sukhdev in forum Adapter SDKs
    Replies: 3
    Last Post: August 1st, 2007, 08:44 AM
  5. Replies: 6
    Last Post: May 30th, 2007, 11:47 AM

Tags for this Thread


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 10:19 AM.