N
Novu2y ago
Nitin

Storing of scheduled messages

Does Novu store scheduled notifications in memory or permanent storage? The reason to ask is if the system hosting Novu is rebooted, do the scheduled notifications get wiped off? I am using self hosted Novu, hence the question.
9 Replies
Pawan Jain
Pawan Jain2y ago
@nitingupta__7 If with reboot, redis and mongodb is also resetting Then yes, it will be wiped off
Nitin
NitinOP2y ago
Thanks @Pawan Jain. This helps. Will continue the thread if I have any other questions.
Novu_Bot
Novu_Bot2y ago
@nitingupta__7, you just advanced to level 1!
Zac Clifton
Zac Clifton2y ago
FYI, mongodb will not get reset if you have it set up with a docker volume. This is what we have set up in the docker files currently.
Nitin
NitinOP2y ago
I am not clear on how MongoDB is used by Novu. If that is storing the notifications and repopulating redis upon boot and maintaining the cache on an ongoing basis, there should be no lost notifications in that case right? If I have some scheduled notifications and I reboot my Novu hosting or upgrade it to a new version, What will be the implication of that on my scheduled messages? @Pawan Jain @zacclifton ☝️
Pawan Jain
Pawan Jain2y ago
Hi @nitingupta__7 I would recommend to have both MongoDB and redis with persistent storage for scheduled message
Nitin
NitinOP2y ago
Ok.
Zac Clifton
Zac Clifton2y ago
Mongodb is used for long-term storage and Redis is used for caching and storing messages in-flight. If the redis system is restarted without activating the append-only log feature then you risk losing jobs.
Nitin
NitinOP2y ago
Thanks @zacclifton , this clears stuff 🙏
Want results from more Discord servers?
Add your server