Spring Websocket with fallback load balancer

We are trying to use spring-websocket with STOMP using SockJS as fallback option. We based our solution on this tutorial: https://spring.io/guides/gs/messaging-stomp-websocket/ .

Several cats work in the environment without a sticky session.

The problem we are facing is that it is not possible to use a backup from the websocket due to xhr requests ending on individual cats where the original session does not exist, causing it to retry online and continue in this loop.

Is there a preferred way to solve this problem?

We were hoping spring's answer would be the answer, but it doesn't seem to help in this case.

+3


source to share


1 answer


Your answer is one of:
1) REST services
2) sticky sessions
3) session replication



+1


source







All Articles