vendredi 29 octobre 2021

How to design notification system that sends real-time alerts created by users

I've been thinking about how to design a system that supports user created scheduled alerts. My problem is once the alerts are created and inserted into a database, I don't know what the best way to go about scheduling those alerts. Polling the database to see which alerts need to go out next doesn't seem entirely right to me.

What are some ways this could be handled on a scale where say a million users could create their own custom alerts like change baby diaper at 3pm everyday?

Aucun commentaire:

Enregistrer un commentaire