Issue Details (XML | Word | Printable)

Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: dannycoward
Reporter: dannycoward
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

Websocket sessions: how do they behave in a distributed server environment

Created: 12/Oct/12 09:45 PM   Updated: 14/Dec/12 11:44 PM  Due: 14/Dec/12   Resolved: 14/Dec/12 11:44 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Tags: v010
Participants: dannycoward

 Description  « Hide

Currently the web container allows HttpSessions to be serialized and moved between nodes in a distributed server. The purpose it to dynamically balance the load on a distributed server.

So what does this mean for WebSockets in the distributed environment ?

I need to research this, but it seems unlikely that, without cooperation from the client, such distributed deployments close the TCP connection and reconnect it from a different server location. Which would mean that websocket sessions are tied to the node in the cluster. Which has implications on web applications containing web sockets and limits the ability of the server to move an http session around.

The websocket spec will need to define what is allowable for web socket implementations in the distributed Java EE setting. Currently, it looks like web application sessions can only be moved around if there is some cooperating websocket proxy that is fronting the actual TCP connection.

dannycoward added a comment - 14/Dec/12 11:44 PM

updated in v10