harcon-nats

2.2.43 • Public • Published

harcon-nats

NATS.IO transport layer ("Barrel") plugin for harcon.

Zero configuration scaling: this transport layer supports infinite horizontal scaling for harcon microservices without any configuration. All service discovery and balancing logic is provided by this package.

Installation

npm install harcon harcon-nats --save

Usage

let Harcon = require('harcon')
let Nats = require('harcon-nats')

let natsConfig = { 'url': 'nats://localhost:4222' }
let harcon = new Harcon( { Barrel: Nats.Barrel, barrel: natsConfig } )

Should the recipients be not available or fail to meet the timeframe defined by the attribute 'timeout', harcon will call the callbacks of the given messages with an error.

js-standard-style

Package Sidebar

Install

npm i harcon-nats

Weekly Downloads

68

Version

2.2.43

License

MIT

Unpacked Size

54.9 kB

Total Files

23

Last publish

Collaborators

  • imre.fazekas