Tuesday, September 11, 2012

How to Upgrade to Web Client Library 6 and Later


Lightstreamer JavaScript client version 6 brings some new interesting features and some long-awaited changes. This time we’ve chosen not to pass from the deprecate-first remove-then path as we’ve always done: in fact the entire API was completely designed from scratch to be more flexible and easy to use. Unfortunately, this also means that some effort is necessary to migrate your code based on Lightstreamer HTML Client 4 or 5 to the new Lightstreamer JavaScript Client 6 and later.
This guide was written to help you with the migration. Only the simplest way to do the porting is illustrated; it is obviously possible to use more complicated techniques. Also following only the guide you will not exploit many of the new capabilities of the library, so, before doing the porting I suggest you to check the changelog, the new Development Guide and the Tutorial.

Wednesday, September 5, 2012

Dynamic Bandwidth and Frequency Management

If you have been knowing Lightstreamer for a long time, you appreciate that it has always been particularly good at managing the bandwidth used by the stream connection and the individual update rate of each subscription.

In addition to heuristically spot network congestions and adapting the data flow automatically, Lightstreamer has always offered an API call to dynamically change the maximum bandwidth granted to a given stream session.

The good news is that now both Lightstreamer 4.1 and 5.0 allow you to change the maximum frequency granted to each individual subscription on the fly.