I have a Grails 2.4.5 application that was monolithic, with back-end and front-end combined and using GSP,session and making a call every 5 seconds to a controller tracking changes through ehcache hash and updating the only the changed element.
The project has now been turned into a REST architecture with a separate back-end (Grails 2.4.5) and front-end (ReactJS).
What's the best way to handle live reloading, by having the back-end being made aware of database changes and notify the front-end about which api to call or specific element(s) that changed, so the front-end will only change the specific UI elements with the new data?
Any example and best practices are welcomed in order to maintain performance.