Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New low-level streaming protobuf Riak client #213

Open
mikepb opened this issue May 19, 2014 · 0 comments
Open

New low-level streaming protobuf Riak client #213

mikepb opened this issue May 19, 2014 · 0 comments

Comments

@mikepb
Copy link

mikepb commented May 19, 2014

I was revisiting Riak's Protocol Buffer API and decided to use it to learn Node.JS's streaming API. I ended up using dcodeIO/ProtoBuf.js to write a nice stream-based "socket" for Riak:

https://github.com/mikepb/ripe-protobuf

var RipeSocket = require('ripe-protobuf');
var socket = new Ripe();

socket.write({
  type: 'RpbGetServerInfoReq'
});

socket.once('data', function (data) {
  console.log(data);
  // { type: 'RpbGetServerInfoResp',
  //   result: {
  //     node: '[email protected]',
  //     server_version: '2.0.0beta1' } }
});

This could be useful for #196 (this is a stream), #199 (uses Riak 2.0 .proto descriptions), #204 (underlying socket has keep-alive enabled), #210 (uses no native modules).

Would this library be useful to anyone?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant