substack/dnode — Issue #79: Suggested usages for high volume rpc
Author: ayoung
Created: 2011-12-20 00:41:52+00:00
State: open

I'm thinking of using dnode to make calls to our internal API (client and server would be internal). Assume the dnode server will be getting lots of volume (requests) from only one or two clients. If requests are exclusive and atomic is it better to keep open a single connection or should I keep closing and reopening new ones for each request?

Also, if our API (list of functions) is large, the payload just for opening a connection would be really large because the server would be sending a big list of possible function names to the client when there will generally only be one function being run per connection (assuming we're not keeping connections open). Is there a better way to do this? Or organize my RPC functions so that it doesn't have the large payload?