rascal
Version:
A config driven wrapper for amqplib supporting multi-host connections, automatic error recovery, redelivery flood protection, transparent encryption / decryption, channel pooling and publication timeouts
45 lines (43 loc) • 782 B
JavaScript
const _ = require('lodash').runInContext();
const defaultConfig = require('./defaults');
module.exports = _.defaultsDeep(
{
defaults: {
vhosts: {
connection: {
options: {
heartbeat: 50,
},
},
namespace: true,
exchanges: {
options: {
durable: false,
},
},
queues: {
purge: true,
options: {
durable: false,
},
},
},
publications: {
options: {
persistent: false,
},
},
subscriptions: {
closeTimeout: 500,
},
},
redeliveries: {
counters: {
inMemory: {
size: 1000,
},
},
},
},
defaultConfig
);