I am doing a query an a database and getting results from it. Those results may last for about 1 second each. I want to display these asynchronous on the HTML page in a table. What would be the most easy way to realize this? I already thought about some stuff like a queue, on that the API writes the results and a frontend reads them as far as they are written and publishes them in the table. So a kind of publisher – subscriber structrure.
Share
For this type of approach, I would recommend DWR. It provides a mechanism to call server-side services from javascript, and rendering results in page using javascript as well.
http://directwebremoting.org/dwr/index.html
There are a lot of simple examples in this site.