2 Replies Latest reply on Nov 25, 2018 5:48 AM by palermo

    Cluster of Wildfly and websocket

    dometec

      Hello,

        I would like to create a kind of instant messaging service using websocket with a cluster of Wildfly.

      Each client is connects to a server and remains connected for the duration of session.

       

      The problem that I am facing is how to send a message to a user Alice that is connected on Node1, to Bob connected on Node2.

       

      I was thinking of using Infinispan to store users online (and NodoX where they are connected to), and then use EJB remoting to connect from one node to another to send the message.

       

      I need a synchronous call between nodes because I would notify Alice if the message was actually delivered to the user Bob client.

       

      There are better solutions?

       

      Thanks,

      Domenico