nathanaschbacher / nodiak

Nodiak is a Node.js client for the Riak Distributed Database
MIT License
43 stars 16 forks source link

Implement protocol buffers support around the C++ pb module. #25

Open nathanaschbacher opened 9 years ago

nathanaschbacher commented 9 years ago

Finally need to add protocol buffers support. I want to implement it around a patched version of the protobuf-for-node library so that it's actually performant. The JS-based pb libraries are miserably slow by comparison. Considering that serialization and deserialization is where the bulk of blocking CPU time is spent. This seems like a worthy effort.

In order to do this properly I need to finish a TcpClient library that abstracts away socket and connection management details somewhat similar to how the native HttpClient does in node.