0.1.1 • Published 8 years ago

dcurl v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
8 years ago

dcurl

Distributed curl system

Install

npm install dcurl --save

Usage

Server

Launch broker

DEBUG=* ./bin/dcurl-broker.js 127.0.0.1:55555

Launch worker

DEBUG=* ./bin/dcurl-worker.js 127.0.0.1:55555

Launch server (broker and worker)

DEBUG=* ./bin/dcurl-server.js 127.0.0.1:55555

Scripts

"scripts": {
  "start:broker": "DEBUG=* dcurl-broker 127.0.0.1:5555",
  "start:server": "DEBUG=* dcurl-server 127.0.0.1:5555",
  "start:worker": "DEBUG=* dcurl-worker 127.0.0.1:5555",
}

Client

Run distributed request

var request = require('dcurl')('127.0.0.1:5555');

request('http://google.com', console.log);

License

MIT