Load Balancing WebSockets
An introduction to WebSockets and how to load balance them. WebSockets creates a responsive experience for end-users by creating a bi-directional communication stream versus the one-way HTTP ...
Published Jul 31, 2015
Version 1.0Eric_Chen
Employee
Joined May 16, 2013
Eric_Chen
Employee
Joined May 16, 2013
Eric_Chen
Sep 03, 2015Employee
Patrik,
Yes, the XFF would only be visible for the initial HTTP connection. Typically this would be associated with a thread/process that you could preserve the last XFF that was seen. Once the connection is upgraded to websocket it will appear to be a normal TCP connection. It is possible to parse the individual TCP messages as websocket frames (I started to play around with this as an iRule). In my limited tested I observed that if you took a websocket server down it would be possible for a client to re-connect and associate with another server. If the client was sending data at the time of the disconnect it would be possible to lose a message. Once a connection becomes a websocket connection it is more like a telnet/ssh/database connection (long lived). Hope that helps.
Eric