Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Dec 2010
    Location
    HK
    Posts
    7

    How to setup frequency control?

    Hi,
    I am new to Lightstreamer and have followed some demo example in Lightstreamer.
    But seems I cannot find a place to set the frequency control. Any hint for me on how to setup frequency control?

    Frequency Control
    A maximum update frequency can be allocated for each user/item combination. For example, it is possible to configure the profile of a certain user so that they do not receive more than 2 updates per second for a certain subscribed item (piece of data).

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    first of all, there are minimum limits on the frequency posed by the server edition you're running; see http://www.lightstreamer.com/products.htm

    any client can ask the server to set a further limit calling a "frequency" method located on the "table" object; in the case of the web client you can call the setRequestedMaxFrequency method.

    the metadata adapter may set another limit on the frequency through the getAllowedMaxItemFrequency.

    HTH

  3. #3
    Member
    Join Date
    Dec 2010
    Location
    HK
    Posts
    7
    Hi,
    For setRequestedMaxFrequency using in "command" or "distinct" mode, if there is any event missing at the client side if the event in frequency is faster than the max frequency allowed? (will Lightstreamer filter out some event or it will send those event later?)

    Quote Originally Posted by Mone
    first of all, there are minimum limits on the frequency posed by the server edition you're running; see http://www.lightstreamer.com/products.htm

    any client can ask the server to set a further limit calling a "frequency" method located on the "table" object; in the case of the web client you can call the setRequestedMaxFrequency method.

    the metadata adapter may set another limit on the frequency through the getAllowedMaxItemFrequency.

    HTH

  4. #4
    Member
    Join Date
    Dec 2010
    Location
    HK
    Posts
    7
    And how about the Bandwidth control? Is it set in web client side? Which function should be used? (is it setRequestedBufferSize(size) )

    Bandwidth Control
    For each user a maximum bandwidth can be allocated, dedicated to the streaming channel, For example, if it is required that a certain user cannot exceed a bandwidth of 10 kbps, Lightstreamer will filter the data in such a way as to ensure that the streaming connection for that user always remains below 10 kbps.

  5. #5
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    the bandwith settings follows the same pattern, the client can ask to limit its bandwidth (setRequestedBufferSize is the correct method) but the server has always the right to limit it further (see getAllowedMaxBandwidth). Note that bandwidth applies to the whole connection.


    about the filtering question, Lightstreamer filters the updates on the basis of the subscription mode. If the frequency of the feed is too high the server may merge updates, queue them and, if the queue is full, drop them. On some cases dropped events are notified to the client (see onLostUpdates)

    Check out section 3 of the "General Concepts.pdf" file available under LS_HOME/DOCS-SDKs for a better understanding on the logic that drives the filtering.

    Let us know if you need further details.

 

 

Similar Threads

  1. Newbie to setup multihosting
    By jhang0315 in forum General
    Replies: 3
    Last Post: May 30th, 2012, 09:44 AM
  2. LightStreamer and Tomcat separate setup
    By yzhengyu in forum General
    Replies: 1
    Last Post: January 20th, 2011, 11:22 AM
  3. Need to setup a local demo
    By kumar117 in forum General
    Replies: 3
    Last Post: June 11th, 2010, 09:45 AM
  4. Multiple control.html requests
    By riwang in forum Client SDKs
    Replies: 3
    Last Post: August 13th, 2009, 09:43 AM
  5. How to control connections and items suscribed
    By webfg in forum Client SDKs
    Replies: 3
    Last Post: July 3rd, 2009, 08:44 AM

Bookmarks

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 01:41 PM.
Lightstreamer Logo