Sorry if this not the typical stackoverflow question. However, I believe that there is a "best-practice" answer out there and I am just to inexperienced with nodeJS to know it.
I am using the pusher api to receive some data. At the moment I am saving them in mysql and displaying them via express as a table and as a graph in my browser. However, my use case is slightly different.
When data arrives through the pusher api, I want update the browser view(table + graphs) of all connected clients.
I read a lot about socket.io and guess the "updating the clients" browser can be accomplished by using it. However, I am struggeling with the part of notifying my application that some new data has been inserted in my database.
I definitely need some form of Publish/Subscribe
pattern in my app. Where the app subscribes to the database and pushes it via socket.io to the view.
Any recommendation how to implement in an easy way?
I appreciate your answer!