uber-archive / multitransport-jsonrpc

JSON-RPC Client (Node.js & Browser) and Server (Node.js) aim at "natural looking" server and client code.
116 stars 22 forks source link

Confused by readme #10

Closed mscdex closed 11 years ago

mscdex commented 11 years ago

Here you are basically arguing for TCP but you say "ridiculous performance gains when you don't need to do a TCP handshake" (emphasis mine). There is a TCP handshake because it is TCP.

dfellis commented 11 years ago

ridiculous performance gains when you don't need to do a TCP handshake or account for the HTTP header overhead on each request and response.

The TCP handshake is amortized on the initial connection between the client and server and is only paid on the first message between the two, making it effectively "free" for any long-running processes. And of course the HTTP header overhead is entirely gone.