How to implement an automatic update of a maintenance page in an angular app?
<p>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.  </p>

<p>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.</p>

<p>I was thinking if there is a simpler way of implementing this feature.</p>