Currently, I am integrating AngularJs with the Grails framework and utilizing MySQL as the database.
My goal is to create a feature that updates views automatically, similar to what happens on Facebook.
Thus far, I have successfully transmitted JSON data from the Grails Controller to the Angular controller and displayed it on the view.
However, my challenge lies in enabling real-time updates to the views when changes are made to the database without reloading the page.
I have come across the idea of "polling every X milliseconds using $timeout and $http."
Would this approach be efficient for a production application?
I would appreciate any suggestions or insights on implementing measures or Angular features to address this issue.