Results 1 to 2 of 2
  1. #1

    Subscribe again in data retrieval


    I am subscribing data in command mode , the snapshot data is from api call and if it fails we want to make sure the retry occurs atleast when next client connect.

    so if we do clearnsnapshot and issue unsubscribe call.

    does it trigger the subscribe method.

    Our only intention is to connect data adapter somehow for the second client onwards. We knew that meta adapter get notifies but we want to understand does data adapter gets any callback upon subsequent client subscriptions?

  2. #2
    Join Date
    Jul 2006
    Hi, We confirm that the Data Adapter is not notified of client activity (which is the job of the Metadata Adapter instead).
    This separation of concerns is by design.
    The invocation of clearSnapshot doesn't affect the subscription lifecycle but only the data flow (in COMMAND mode it is equivalent to issuing DELETE for all current keys).
    Likewise, invoking unsubscribe from the Adapter to itself has no effect on the Server behavior.

    If the collection of the snapshot upon subscribe fails, you should retry immediately (or after a proper timeout).
    Once the snapshot finally arrives, you can provide it immediately to the Server; it will be send to the first client and it will be ready to be sent to the second client when it arrives.
    If you prefer to wait for the second client to subscribe (while the first is still connected), then you can't but ask for the collaboration of the Metadata Adapter, which is the owner of this information.



Similar Threads

  1. Snapshot retrieval - Data Source Failure recovery
    By rajesh.palanisamy in forum Adapter SDKs
    Replies: 1
    Last Post: April 30th, 2018, 09:15 AM
  2. Replies: 7
    Last Post: September 21st, 2007, 10:47 AM
  3. Data Adapter's subscribe() method not getting called
    By CitiMan in forum Adapter SDKs
    Replies: 8
    Last Post: November 30th, 2006, 04:26 PM


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 07:03 PM.