node-red-contrib-pubsubhub

0.1.1 • Public • Published

node-red-contrib-pubsubhub

Provided publish/subscribe frame work with nodered. This allows for complete independence of development between flows and allowing dynamic growth. Helpful with complex flows. Pause/resume facility allows process flows to be bypassed dynamically. A message can be processed by multiple flows as clones or as same message.

Publish/subscript can be across multiple node-red instances. This make node-red highly scalable and allow instances to be tailored for certain processed and at the same time give indpenedence to flows and instances. Should allow for dynamic system software upgrades without outage.


Publish

Simply publishes a message to the message hub using a topic which can be predefined or used topic of message.

publish node


Subscribe

Registers interest in a topic. More than one node can register an interest. Message can be cloned to ensure not impacted by other subscribers. Subscriber nodes can be pooled to the one id for a topic leaf so they round robin so only one processes a message.

subscribe node

Pause/Resume Subscription

It is possible to pause and resume a subscription. Note it means messages that would have been processed are are lost unless pooled which mean processed by another subscribe node in the pool.

Pause/Resume


Hub

hub node


Future Improvements

  • Start subscribe in paused state
  • Allow pass thru message to be held back until triggered by a subscription

Install

Run the following command in the root directory of your Node-RED install or via GUI install

npm install node-red-contrib-pubsubhub

Version

0.1.1 nodes-started to flows-started

0.1.0 Distributed node pub/pub

0.0.2 Initial release

Author

Peter Prib

❤️ Sponsor

Package Sidebar

Install

npm i node-red-contrib-pubsubhub

Weekly Downloads

2

Version

0.1.1

License

GPL-3.0

Unpacked Size

242 kB

Total Files

26

Last publish

Collaborators

  • peter.prib