Rate Limit per topic, releasing first message

#1

I have a need to rate limit a notification message, by topic. So I setup the delay node to do that. However, I want only 1 message per day per topic.
Unfortunately, the Delay node will "delay" 1 day before sending the messages it has stored.

Is there a node that can send the first message of a topic, and delay any further messages on that topic for 1 (meaning rate limit, After, first received).

Thanks!

0 Likes

#2

The delay node can rate limit per topic.

0 Likes

#3

You are right that when the Delay node is in Rate Limit mode by topic it does not behave as it might be thought it should. One solution would be to split the messages by topic and use separate Delay nodes set to rate limit (ignoring topic) in each path. Messy but it should do the job.

0 Likes

#4

Thanks, I've thought of all the "hacky" way to do it... I'll program my own node if I go that route and there isn't one already. So many great custom nodes out there I haven't found one yet and hoped someone here may know.
I don't want to have to setup a new path every time I setup a new device that would use this flow (its a status check, which in theory, will get status' from any new device I add to my system and will only send notifications at the rate i want to limit.

0 Likes

#5

Can I just check that the underlying problem you have is not because there are repeated messages for a topic with the same contents. If that were the issue then you can use an RBE node to suppress them.

0 Likes