0.5.0-rc.4 • Published 6 years ago
weave-core v0.5.0-rc.4
Weave
Weave is a fast and easy to use microservice framework for NodeJS (>= v6.x).
Features
- Service mixins
- Multiple services per node
- Request-reply concept
- Event bus system
- Supports middlewares
- Pluggable transporters (NATS, Redis)
- Automatic service discovery
- Load balanced requests (round-robin, random)
- No master/leader node
- Distributed timeout handling with fallback response
- Health monitoring, metrics & statistics
Installation
$ npm install weave-core --save
Quick start
This example shows you how to create a small service with an add
action which can add two numbers.
const { Weave } = require('weave-core')
let broker = Weave({ logLevel: 'debug' })
broker.createService({
name: 'math',
actions: {
add(ctx) {
return Number(ctx.params.a) + Number(ctx.params.b)
}
}
});
broker.start()
.then(() => {
// Call service
broker.call('math.add', { a: 5, b: 3 })
.then(result => console.log('5 + 3 =', result))
.catch(error => console.error(`Something went wrong! ${error.message}`))
})
Sample applications
There are a number of sample applications available:
// todo
Documentation
Comming soon
Changelog
See changelog.md.
Roadmap
See roadmap.md.
License
The weave framework is available under the MIT license.
Contact
Copyright (c) 2018 by Fachwerk
0.5.0-rc.4
6 years ago
0.5.0-rc.3
6 years ago
0.5.0-rc.2
6 years ago
0.5.0-rc.1
6 years ago
0.5.0
6 years ago
0.4.0-3
6 years ago
0.4.0-2
6 years ago
0.4.0-1
6 years ago
0.4.0
6 years ago
0.3.0-beta5
6 years ago
0.3.0-beta4
6 years ago
0.3.0-beta3
6 years ago
0.3.0-alpha15
6 years ago
0.3.0-alpha14
6 years ago
0.3.0-alpha13
6 years ago
0.3.0-alpha12
6 years ago
0.3.0-alpha10
6 years ago
0.3.0-alpha9
6 years ago
0.3.0-alpha8
6 years ago
0.3.0-alpha7
6 years ago