How to rate limit messages

With the delay node I can set it to rate limit messages, but the behavior is different from what I expect.
Setting: 60msg/h, this means 1 msg/min, delete intermediate messages

If I have a message and another message 2 seconds apart, the node will block the 2nd message because it is 2 messages within 1minute

The behavior I expect/need is that both messages would pass because 60 messages in 1h are allowed. So even if there are 60messages within 1 second, they should all pass, but message 61 should be blocked. This requires a moving/sliding window.

Can I achieve this with the existing nodes?

The latest version of the delay node has an option for burst mode - which is what you want. IE it will let through as many messages as set up to the limit and then it will block.

Thanks, right that looks more to what I'm looking for. For how long are messages blocked? So e.g. 60msg/h does it block for 1h and then again allow for 60 messages?

Well it allows through 60 messages then blocks until the rest of the hour( from the first message) has passed. So if you send 59. Then wait 59 mins and send 1 more. It would only block for another minute.