moleculer-rs — work in progress
Inspired and compatible with Moleculer JS
You can currently do all the basics of emit, broadcast and call.
However it only works with the NATS transporter and JSON serializer/deserializer.
Getting Started
Available on crates: crates.io/moleculer
Simple example showing how to receive an event, for more check the examples folder
async
// callback for first event, will be called whenever "printHi" event is received
// callback for second event, will be called whenever "printName" event is received
Current Status
What it does
- Is discoverable by other moleculer clients
- Only NATS transporter
- Only JSON serialization/deserialization
- Can
emitandbroadcastevents - Can respond to events from other molecular clients using callbacks (see: simple event example)
- Can create actions, and respond to requests (#19)
- Can
callto send request and wait for response (#20)