@gasbuddy/configured-rabbitmq-client

    9.0.0 • Public • Published

    configured-rabbitmq-client

    A small wrapper around the foo-foo-mq to allow configuration from confit.

    Persistent messages

    exchanges and queues are durable by default. You can make messages persistent in an exchangeGroup (primary, retry and rejected) by doing the following:

    {
      "exchangeGroups": {
        "exchange.test.request.v1": {
          "persistent": true,
          "keys": "exchange.test"
        }
      }
    }
    

    Follow this link to see more options

    TTL

    Only retry queue use TTL by default. You can set it by doing the following.

    NOTE: You cannot change TTL on an existing queue.

    {
      "exchangeGroups": {
        "exchange.test.request.v1": {
          ...
          "perMessageTtl": true, // It should be used on new exchange groups even if you don't change the default value
          "retryDelay": 60000, // default 10000ms
        }
      }
    }
    

    Install

    npm i @gasbuddy/configured-rabbitmq-client

    DownloadsWeekly Downloads

    2

    Version

    9.0.0

    License

    MIT

    Unpacked Size

    55.1 kB

    Total Files

    19

    Last publish

    Collaborators

    • djmax