Split node with delay of each message

Hi,
I have used split node successfully to split a message into several messages.

Is there a way to delay each single message e.g. by 5 seconds. A delay node does not do the trick.

Help appreciated!

Regards
Kallewirsch

How have you configured the Delay node ?
Have you tried setting it to

image

Indeed it is unclear from the Help tab of the node why when set to "Delay each message" it sends all the messages at once. Possibly because they have the same Topic ?

2 Likes

The 'delay' message option applies to each message individually. The delay is applied from the moment the message arrives at the node.

If 10 messages arrive at the node at time X, they will each get delayed for N seconds then all get released at time X+N.

If you want to add a delay between each message, then you are changing the rate they pass through the node- hence the 'rate limit' mode is needed here.

3 Likes

@knolleary thanks for the detailed explanation .. ofcourse, it makes sense

since we are on the subject of Delay .. what happens if, lets says, we inject a msg to the Delay node every 1 second and the Delay is set to "Rate limit" the msgs for 5 seconds ? what happens to the queue of msgs after a long time ?

Eventually you would run out of memory.

1 Like

You can set a limit, which when hit will create an error and flush out the queue

I don't see that documented in the help text. Or do you mean to use a Status node to pick up the queue size and use that to trigger the flush?

Hi UnborN,
this setting works for me!!!

Thanks for your hint!

Regards
Karl-Heinz

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.