if familiar xmpp servers , must know openfire. im planning write json version of openfire (imo xml outdated , json alot faster,and openfire slower mate, tigase, both have issues), part i'm stuck @ is, when clustering (for example using hazzelcast) , contact sends message instance of server, target on instance, either need have connection shared or should use sort of memory based queue send packet target.
i tried read openfire source complicated , decided share question here:
how can serveral clustered servers use single tcp connetion send packet?
i'm going use netty network framework.
a tcp connection it's abstraction of 2 pairs of ip_addr + port, 1 belonging server , other client (more precisely, it's pair of channels associated endpoint). given premise, cannot have tcp connection shared amongst servers having different ip addresses.
in java 9 so_reuseport supported , able have multiple server sockets sharing same pair ip_addr + port. far know netty you.
Comments
Post a Comment