Urbanleg
Urbanleg

Reputation: 6542

Tomcat 7.0.47+ Websocket failover

In our current generation web application we used session replication with tomcat clustering. (and a load balancer) That way, we received an auto failover when a client sends an ajax request to a tomcat node that failed.

In our next generation web application, We would like to have a similar behavior, only with websockets.

So my questions are :

1) Is it possible ?

2) Does it involve websocket-session replication? if so, are there any guides on how to do that?

Upvotes: 0

Views: 628

Answers (1)

seungwook
seungwook

Reputation: 11

Websocket implementations that are part of a distributed container may need to migrate websocket sessions from one node to another in the case of a failover. Implementations are required to preserve developer data objects inserted into the websocket session if the data is marked java.io.Serializable. [WSC 2.1.2-4]

Upvotes: 1

Related Questions