Notification System Design

杀马特。学长 韩版系。学妹 提交于 2021-02-08 11:49:17

问题


Given the schema below, how can a notification system be incorporated?

Users need to be notified when someone comments on their Picture or SaleItem along with when someone makes a bid on their SaleItem (through Purchase Offer).

The ultimate goal is to have a notification system that will handle SMS, Email, and an internal system messaging system. The complexities of those options will be worked out but I need the basic data model from which they can be built upon.

MySql is the DB being used but I don't believe that should affect the data model.

Thanks

enter image description here


回答1:


Setup up a table for holding the notification information and set up a trigger to write to this table whenever there is an an action in the system (lets say new bid).

then your scheduler should pick this new notification and sends email/sms.



来源:https://stackoverflow.com/questions/5362201/notification-system-design

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!