@gasbuddy/configured-rabbitmq-client
v9.0.0
Published
A configuration driven RabbitMQ client
Downloads
76
Readme
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
}
}
}