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
@nitingupta__7
If with reboot, redis and mongodb is also resetting
Then yes, it will be wiped off
Thanks @Pawan Jain. This helps. Will continue the thread if I have any other questions.
@nitingupta__7, you just advanced to level 1!
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.
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 ☝️
Hi @nitingupta__7
I would recommend to have both MongoDB and redis with persistent storage for scheduled message
Ok.
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.
Thanks @zacclifton , this clears stuff 🙏