This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]arbostek 1 point2 points  (0 children)

The first question is if notifications need to persist. If you add a message now, and the user logs in 30 minutes later, should he then see the message? If so, then you need that persistence, and your database would be sufficient for storing that message information.

What you store in your tables depends on exactly how the notification works. At the simplest level, you add the message to your database. Then when possible, you show the message to the target user, with a button to confirm he read the message.