java - ActiveMQ example which shows client-server 2 way communication? -
i want write java se client application talks java server. imagine akin online game there lot of traffic , potentially multiple clients connected same server.
- constant communication between client , server
- communication out of order, out of band neither end knows nor expects message might receive next or when.
- the server doesn't know client ip , cannot establish comms client (because there may nat in way). open ports must initiated client side.
- actual payload serialized bytes. intend use protocol buffers marshal messages bytes onto wire transport envelope must lightweight too.
- client java se, potentially day c++.
activemq seems suitable choice here since have never used not sure if has performance or characteristics.
can advise if suitable, pitfalls may encounter , perhaps suggest tutorial demonstrates similar considering?
yeah, highly recommend activemq, it's fast, easy install, can handle requirements nicely. it's tight encoding option compress message envelope size , supports 'usecompression' option compress message bodies you. has nice c++ client
Comments
Post a Comment