JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 89
  • Score
    100M100P100Q86445F
  • License ISC

implements rate limit with sliding window

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@cameo69/node-red-ratelimit) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    node-red-contrib-ratelimit

    A simple node that offers rate limiting based on a sliding window.

    This allows to let bursts of messages pass but limit the passage of constant high message rates.

    User can specify a max number of messages (n) for a time period (t). Messages within the given limit will be sent to output 1, messages exceeding the limit will be sent to output 2. The relevant time period is between now()-t and now(). For every incoming message it is checked if the number of messages sent in the time frame is below n; and if yes, the message will be sent to output 1; otherwise it is sent to output 2.

    Node

    image

    Settings dialog

    image

    Example

    output_rate-limiter01