DEV Community

Discussion on: Real time non-push notification in nodejs

Collapse
 
sudoshreyas profile image
sudoshreyas

actually both.

Collapse
 
davidszabo97 profile image
Dávid Szabó

Where are you at right now?

Database design depends on the features you need.
You can just simply create a notification table, something like this

id - integer
user_id - integer
content - varchar or text
read - boolean
created_at - timestamp

dev.to and facebook is much more complicated than a simple notification

Using google I found a discuss which may help: hashnode.com/post/architecture-how...

Thread Thread
 
sudoshreyas profile image
sudoshreyas

thanks a lot