-
February 10th, 2016, 10:12 AM
#1
Hi Klaus,
thank you very much for your feedback!
At first sight your project would seem ok, but when cloned and launched from my machine I can't see any real time update coming from the remote server. It may be a symptom that something has gone wrong in the subscription phase, so I ask you to check it with your service provider and then get back to us to go on with our investigation.
Regards,
Gianluca
-
March 2nd, 2016, 02:14 PM
#2
Hi Gianluca
The service provider didn't document which mode I should use when subscribing to their Orders stream, I found a forum entry that said I could use DISTINCT, or RAW, and unlucky as I was I picked DISTINCT.
Strangely enough DISTINCT worked about 80% of the time with LS5 and LS6-b2, but not the final LS6. After I got a running example from the service provider I noticed that they used RAW, and after I made that adjustment it worked fine.
I'm a little puzzled about the 20% periodic failure rate, but I'm thinking it's related to some implementation detail in the service provider, and they probably never tested it or planed it to work with DISTINCT mode.
Thanks again, for taking time to look at this.
/Klaus
-
March 3rd, 2016, 11:30 AM
#3
Hi Klaus,
I confirm that you should always be aware of which mode to use in your subscriptions on the client.
Indeed, at the server side, the Metadata Adapter should always define the subscription methods permitted for each Item through a proper implementation of the isModeAllowed method.
If this is not done, or are admitted for the same Item two conflicting modes, we could have unpredictable behavior.
For example if a client subscribe an Item in MERGE mode and a subsequent client requesting the same Item in DISTINCT mode, this will be eventually refused by Lightstreamer server.
But, if we invert the temporal order of the two clients, only the DISTINCT subscriptions will work.
Regards,
Giuseppe
Similar Threads
-
Replies: 4
Last Post: March 2nd, 2016, 05:58 AM
-
By Thwart Spiralghost in forum Client SDKs
Replies: 6
Last Post: March 4th, 2014, 11:38 AM
-
By Waddy in forum Client SDKs
Replies: 3
Last Post: January 10th, 2011, 06:17 AM
-
By riwang in forum Client SDKs
Replies: 10
Last Post: July 27th, 2009, 11:13 AM
-
By nagakumaran in forum Adapter SDKs
Replies: 6
Last Post: October 16th, 2007, 02:11 PM
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
-
Forum Rules
All times are GMT +1. The time now is 11:53 PM.
Bookmarks