1.0.1 • Published 8 years ago

node-microservices v1.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

Module for split single process in nodejs to services and reload runtime You can change source files (example, by git) and run restart service

Usage

//index.js
var nms = require("node-microservices");
var control = nms({ port: 3003 })
control.add("service1", require.resolve("./service1"))
//service1.js
module.exports = {
    start: () => {
        return new Promise((resolve, reject) => {
            resolve();
        })
    }
}