I have an angular app that queries a Mysql table an then show the records in the page for maintenance. I wanted to automatically update the page whenever the mysql table changes.
One way that i can think of is to poll the db at a certain interval but this seems inefficient. Another way is to publish a topic to aws sns everytime there is an update on the table and then my app can subscribe to the topic so it can trigger the api to retrieve the records from the table from my app.
I was thinking if there is a simpler way of implementing this feature.