dcurl

0.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i dcurl

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • enten