I am planning to build a generic system for sending notifications to users from my system.
Currently, whenever I need to send any new notifications to users, I add a new periodic_tasks/tasks in Django code and schedule it and deploy the Django application. I put the logic for notifications in code and whenever my periodic tasks run it check which all users are eligible to get this notification. Then I send it to them.
Now, I am planning to build a notification manager So that I can add logic from the user interface for notification alert and it will store in DB so whenever I need a new notification alert it will require database lookup rather than Django deployment.
So, What is the best way to put your logic in DB to make the system more configurable?
Aucun commentaire:
Enregistrer un commentaire