Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Storm DRPC client 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 targer DRPC server.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 lib
Octocat-spinner-32 node_modules
Octocat-spinner-32 thrift
Octocat-spinner-32 thrift_module
Octocat-spinner-32 .gitconfig
Octocat-spinner-32 LICENSE
Octocat-spinner-32 NodeDRPCClient.js
Octocat-spinner-32 README.md
Octocat-spinner-32 package.json
README.md

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

Want to connect your Javascript application with Storm Framework, use node-drpc. Node-DRPC is a 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');

//Note : timeout is optional
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.

Something went wrong with that request. Please try again.