-
September 25th, 2015, 06:50 PM
#1
Hi Giuseppe,
Tnx for the reply. It is really strange that you don't support this option. Out of curiosity, why doesn't it exist as a normal function? I.e. DataAdapter telling the LS when to clear the snapshot. I'm assuming it can be extremely easy to add it. Are there plans to do it in some of the next versions?
We're back to developing new functionalities, using DEMO mode. When we finish, we'll buy probably Alegro with Java (and few other clients) like we had before, so we'll make a Java client to circumvent this in the meantime.
BR,
Dejan
-
September 28th, 2015, 09:43 AM
#2
Hi Dejan,
Indeed the concept of "clear snapshot" was introduced recently in our Adapters Interface and allows the Data Provider to force, for a given Item, the cleaning of the snapshot maintained by the server (clearSnapshot).
But this feature assumes that the items has yet subscribed and nothing can do in case the Item was unsubscribed (no more clients have active subscription for it). And this is why I think it is not useful in your case.
I confirm you that we are already considering the possibility of extending the Adapters interface in order to add the feature you suggest but unfortunately I can not provide a definite schedule for its introduction.
Thank you for your valuable tips.
Giuseppe
-
September 28th, 2015, 10:10 AM
#3
Hi Dejan,
I confirm Lightstreamer is currently based on a "publish-on-demand" paradigm, but we will support "publish-always" too in the future.
In the meanwhile, if you use the technique suggested by Giuseppe, you can make it extremely efficient by specifying a very very low update frequency for each "fake" subscription. This will make no actual data actually flow on the connection, while still keeping all the items subscribed too. Let us know if you need us to expand on this.
Thanks,
Alessandro
-
April 29th, 2018, 05:20 AM
#4
i am using a ANGULAR client and can you help me understand it better on how to make a fake subscription and that with a low frequency updates only for that fake client alone..
Any updates on Publish-Always paradigm !!!
Thanks
Rajesh
-
April 30th, 2018, 10:53 AM
#5
Hi Rajesh,
Regardless of the client technology used the idea of fake subscriptions consists of a client application that remains active and connected to the Lightstreamer server and subscribes all the Items for which you want a always ready snapshot.
The client indeed does not need to consume the received updates so you can set a very low fequency for the subscriptions, for example with JavaScript API (setRequestedMaxFrequency):
subscription.setRequestedMaxFrequency(0.001);
the fake client will receive an update for Item every 1000 seconds.
About the Publish-Always paradigm I can confirm that we are not there yet.
Regards,
Giuseppe
Similar Threads
-
By lizamare in forum Adapter SDKs
Replies: 1
Last Post: April 17th, 2015, 09:59 AM
-
By atejero in forum Adapter SDKs
Replies: 3
Last Post: October 3rd, 2013, 03:08 PM
-
By itcecsa in forum General
Replies: 3
Last Post: May 3rd, 2013, 09:26 AM
-
By genkijo in forum Client SDKs
Replies: 1
Last Post: August 10th, 2010, 10:33 AM
-
By sukhdev in forum Adapter SDKs
Replies: 3
Last Post: August 1st, 2007, 08:44 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
-
Forum Rules
All times are GMT +1. The time now is 04:09 AM.
Bookmarks