Bandwidth and event pushing
Hi all,
I have implemented my own adapter and my own client using the lighstreamer server and client APIs. So far, so good, everything works.
In the client API I used the proxy approach to see the bandwidth usage. I've seen that the average usage is 1.5Kbit/sec. Currently I'm pushing Java objects from the server (ok, the attributes, I build the objects afterwards) and currently I'm getting an average of 3 objects/second. That seems quite slow, so probably I'm quite sure that I'm doing something wrong or that there is a way to tune this.
I tried to change the max_bandwidth, max_frequency and buffer_size parameters in the adapters.xml file but with no apparent effect.
So the question is, is there a way to improve the bandwidth/throughput? would it be a solution to implement more items and instead of doing a single subscription do many subscriptions?
Thanks,
Martin
1 Attachment(s)
Puzzled about second test
Hi again.
I have upgraded my test to create six different subscription channels one for each currency pair I have.
However, I'm now puzzled because the adapter seems to successfully send all the rates in the currency pairs some times, but there are other times that it performs throttling and only sends some of the rates. In the attached file "second-try.txt" see how the first time only one rate is sent, but in the second time the four rates are sent, the next time only 2 of five rates are sent, the next time 4/7, etc.
I'm sure there is some logic behind of this behaviour. Any tips?
Thanks,
Martin