Hello,
I have a requirement to support several HttpServers in cluster mode.
Let's say for example I have 2 HttpServers in cluster mode, user1 is connected via websocket to HttpServer1 and user2 is connected via websocket to HttpServer2.
If user1 wants to send a message to user2, he has to know its event bus address to send a message. The only way I see to achieve that is to store in a clustered shared data map each user websocket address (given by SockJSSocketBase writeHandlerID which is a consumer address available on the cluster, but WebSocketImplBase has only local consumers, this implies to use SockJSSocketBase absolutely ), so each user can retrieve the address of the user he wants to send a message.
Is it the way to go or is there a better solution ?
Thanks by advance.