npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-red-contrib-queuemanager

v0.2.5

Published

Node-RED implements queue manager.

Downloads

25

Readme

node-red-contrib-queuemanager

Node-Red nodes for queue managed of nodes .

Queue Manager (Configuration)

Queue Manager

Management node which can turn other nodes to act like queue, checkpoint or rollback by wrapping base node input with queue manager input which is called before passing message to input of node. For example catch node can be made to act like rollback node.

Queue Manager Node


Queue Manager Admin

Queue Manager

Management node which can turn other nodes to act like queue, checkpoint or rollback by wrappering base node input with queue manager input which is called before passing mEssage to input of node. For example catch node can be made to act like rollback node.

Queue Manager Admin Node

Node input processes messages where the topic drives process

Topic List

out message payload contains of metrics for all queues

Topic pause

Queue all incoming messages. Out message payload contains OK

release

Activate queue processing if paused. Out message payload contains OK

Topic set

Change controlling parameters for queue manager. Payload contains JSON object with properties that can be set. Out message payload contains OK


Queue

Queue

A queuing node which sets how many active messages can be active, maximum queue depth and a time out for the message.

Queue Node


Checkpoint

Checkpoint

A point that applies any commits in commit stack of message and activates next waiting message. Any node can add to commit stack by:

msg.processStack.add({node:node
	,commit:function(processStack) {
		// add logic to commit process
		processStack.next();
	}
});

The functions are called with scope of node property in FILO order.


Rollback

Rollback

A point that applies any rollbacks in rollback stack of message and activates next waiting message. Any node can add to rollback stack by:

msg.processStack.push({node:node,
	rollback:function(processStack) {
		// add logic to rollback process
		processStack.next();
	} 
})

The functions are called with scope of node property in FILO order.


Adding Commit/Rollback to Function

commit-rollback


Install

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

npm install node-red-contrib-queuemanager

Test

Test/example flow in test/testflow.json which requires loadbalance

Test


Version

0.2.5 nodes-started to flow-started

0.2.4 bug fixes: hold and maximum action per qm. action calls on queue

0.2.3 Add hold queue on rollback to QM, queue and rollback.

0.2.2 Add a few more queue controls (+/- active). Get better details if fail. Fix bug with maximum allowed. Display messages and add security around these calls.

0.2.1 fix to work with node-red v1 which changed from emitters to callback

0.1.2 Fix queue consumption to FIFO

0.1.0 Major rewrite to have stack processor be callback thus allow async rollback/commit calls

0.0.4 Add ability to hold/release queue and release a single message

0.0.3 Add queue status to queue node and empty queue function

0.0.2 Fix time issue with queue manager being recognised and control on overflow message flooding

0.0.1 Base


Author

Peter Prib