node-drpc

0.0.8 • Public • Published

Node-DRPC -- Simple Storm DRPC wrapper

Install

  npm install node-drpc

Or from source:

  git clone git://github.com/rkatti/node-drpc.git
  cd node-drpc
  npm link

Super simple to use

Storm DRPC client in javascript for nodejs. The client encapsulates Storm-thrift related details. You can simply connect to any DRPC client by passing in the hostname/ipaddress and port no. of the target DRPC server.

Please, contact for support at Twitter @rakatti or rakatti@gmail.com.

var nodeDrpc = require('node-drpc');
 
var nodeDrpcClient =  new  nodeDrpc( hostName, portNo, timeout);
 
nodeDrpcClient.execute( Storm function Name, Storm function parameter as JSON string, function(err, response) {
  if (err) {
    console.error(err);
    // implement error handling logic here
  } else {
    console.log("Storm function response :", response);
    // implement your logic here
  }
});
 
 

Licence

Node-DRPC is licenced under the MIT licence.

Readme

Keywords

none

Package Sidebar

Install

npm i node-drpc

Weekly Downloads

0

Version

0.0.8

License

none

Last publish

Collaborators

  • rkatti