This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ node client.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const XYZ = require('xyz-core') | |
const fs = require('fs') | |
// create a new microservice | |
let worker = new XYZ({ | |
selfConf: { | |
name: 'worker.ms', | |
// rename this if you want to deploy on a VPS | |
host: '127.0.0.1', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const XYZ = require('xyz-core') | |
let ms = new XYZ({ | |
selfConf: { | |
name: 'client.ms', | |
transport: [{type: 'HTTP', port: 5000}], | |
host: '127.0.0.1' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node worker.js |
NewerOlder