I have a requirement in which I have to refresh the page if any rows inserted in DB. I am able to read data from DB by using listeners and data is coming till "service layer" of my application. After this I have no idea how to throw this data to UI ?
I am using jQuery in UI. I can write a polling API from UI which can look for any update in backend but that would be inefficient approach (I think). Is there any way in which data can be pushed to UI ?
Thanks in advance