Queue
NotifyBC uses BullMQ for notification processing, email and sms throttling. BullMQ is built on top of Redis. Redis connection is defined in config queue.connection with following defaults
module.exports = {
// ...
queue: {
connection: {
host: '127.0.0.1',
port: 6379,
},
},
};
To override the defaults, set the config in src/config.local.js. More connection parameters are documented in ioredis. For example, to use Sentinel,
module.exports = {
// ...
queue: {
connection: {
sentinels: [{ host: process.env.REDIS_SERVICE_NAME }],
name: 'mymaster',
password: process.env.REDIS_PASSWORD,
sentinelPassword: process.env.REDIS_PASSWORD,
},
},
};
If you deployed NotifyBC using Helm chart, this config is taken care of. If you deployed NotifyBC using docker, Redis is created inside docker using Redis In-Memory Server by default.