title: TCP/binary version of Java rest/web services?
body: <p>I'm a networking newbie and have explored a few frameworks such as Jersey and CXF for building RESTful web services in Java.</p>
  
  <p>I have a new application that requires sending <em>large</em> amounts of binary data over the internet (between client and servers), and it needs to be <em>extremely</em> fast. I'm wondering if there is such a thing as a pure "TCP/IP (non-)web service", and if there are any open source Java libraries for building such things.</p>
  
  <p>If all network services have to sit on top of TCP/IP, then I guess I'm looking for something that still uses binary data, but that introduces extremely little overhead for speedy service.</p>
  
  <p>I always associated REST with XML or JSON; if it can be configured to be super-fast and work with binary data, I'd even be into that since I'm already somewhat familiar with Jersey.</p>
  
  <p>I <em>thought</em> RMI might be a good choice, but not sure if it's not appropriate for this use case.</p>
  
  <p><strong>I need speed and I need a binary protocol</strong>, and not sure where to start. Any ideas? Thanks in advance!</p>