Hello everybody!
We have a Java (Spring) web application with Tomcat servlet container. We have a something like blog. But the blog must load its posts dynamically with Ajax. The client's ajax script checks for new posts every second. I.e. Ajax must ask the server for new posts every second and it will be very heavy for database.
But what if we have hundreds of thousands connects simultaneously? I think that we must retrieve all posts with cron every second and after that save it somewhere. But where? The main idea is to unload the database. Any ideas about architecture? Thanks in advance!