New to LIghtStreamer - deployment in a load balanced app server environment
Team,
I am at the owner/architect of a newly launching startup.
I have a web app in a load balanced with (sticky sessions) and clustered session scenario.
I want to pub/sub from LightStreamer and may use other items for chat.
HOwever, I am not clear on a few things.
Load Balancing, I
I will have clients on 1-n application servers posting events and listening for events (messages).
The lightStreamer servers do not communicate with each other per my understanding.
How would an adapter publish data to al lightStreamer instances behind a load balancer/?
Also, how could two clients receive events unless they are connected to the same, lightstreamer server.
I suppose the adapter , could write events to all servers and if there is a timeout, the message could be removed
from a server in which the client is not connected.
Please advise
thanks
Follow-up on load balanced configuration
Quote:
Originally Posted by
gianluca.finocchiaro
Hi Chris,
yes, a client connection could trigger a Data Adapter to put and get data from a centralized data store, that should act as a "broker" for each Data Adapter deployed into each single Lightstreamer instance, in order to properly dispatch the messages even to clients not bound to a specific server.
Regards,
Gianluca
Ok, will look more detailed into this. One concern thought is that each client would be subscribing to their own private items and how to manage this within DataAdapter instances.
I looked at the chat example adapters (referenced earlier in the thread)- this is not trivial- especially with the introduction of AdapterSets.