Cap’n Proto – An interesting data exchange format and RPC scheme

Cap'n ProtoCap’n proto is a Remote Procedure Call (RPC) library designed by the author of Google’s Protocol Buffers.

The author set upon improving Protocol Buffers by defining the data exchange format used by Cap’n Proto in such a way that the same format can be used to store the data in memory or disk. This enables software to be written in such a way that it avoids the costly step of encoding the data before sending it over the network. This capability had been successfully used to optimize Debian’s code search.

Cap’n proto has another interesting feature where it can transparently use information about the remote API being invoked, to collect successive calls together in a single network packet, thereby reducing network round-trip times.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s