I want to create a notification system for my app

I don’t know what is the best way to do it, for the moment I can think in 2 options.

  • Have a separate application that connects to the database of my main app and create observers that read changes
  • When the methods are executed from the client, create the notification in the method

notifications are made to managers and also for the same users