We have a Java (Spring) web application with a Tomcat servlet container. We have a bit of a blog. But a blog needs to dynamically upload its posts using Ajax. The ajax script client checks for new messages every second . That is, Ajax must each time request a server for new messages, and it will be very difficult for the database.
But what if we connect in hundreds of thousands at the same time? I think that we should receive all messages with cron every time and after that save them somewhere. But where? The main idea is to unload the database. Any ideas on architecture? Thanks in advance!
source
share