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.

  1. constant communication between client , server
  2. communication out of order, out of band neither end knows nor expects message might receive next or when.
  3. the server doesn't know client ip , cannot establish comms client (because there may nat in way). open ports must initiated client side.
  4. actual payload serialized bytes. intend use protocol buffers marshal messages bytes onto wire transport envelope must lightweight too.
  5. 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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -