node-drpc
v0.0.8
Published
A simple Node DRPC client wrapper to access Storm DRPC service through javascript.
Downloads
11
Readme
Node-DRPC -- Simple Storm DRPC wrapper
Install
Or from source:
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 [email protected].
var request = require('node-drpc');
var nodeDrpcClient = new NodeDRPCClient( hostName, portNo, timeout);
nodeDrpcClient.execute( Storm function Name, Storm function parameter as JSON string, function(err, response) {
if (err) {
console.error(err);
} else {
console.log("Storm function response :", response);
// implement your logic here
}
});