sbx-server-service
v0.0.27
Published
SBX server service
Downloads
5
Readme
sbx-server-service
sbx-server-sfs module
Requirements
- node >= 10
- sbx >=0.9.1
Peer dependencies
Installation
$ sbx install sbx-server-service
$ npm install sbx-server-service
Use package:
const { ServiceBroker } = require("sbx-server-service");
//
//Execution event service
ServiceBroker({
namespace: 'packages', //unique for service
version: 2,
pipeStream: {
port:8086
},
retryPolicy: {
enabled: true,
retries: 5,
delay: 100,
maxDelay: 1000,
factor: 2
},
eventBus: {
servers: ["nats://mq.domain.io:4222"],
user: 'user',
pass: 'pwd',
json: true,
maxReconnectAttempts: 10,
reconnectTimeWait: 25
}, //connect to EB (kafka, nats, redis)
routesList: __dirroutes,
controllerList: __dircontrollers, //Load with dir
hotReload: true,
ServiceFactory: null,
ContextFactory: null,
replCommands: [],
created(broker) {
},
started(broker) {
},
stopped(broker) {
}
});
EventBus.request()
Developers
- Viktor Fischer
FAQ
License
Copyright (c) 2019 Sobix Group LLC