The general chat room is OK, if it is a big chat room, such as when there are hundreds of people at the same time, I think this kind of solution is missing from time to time. The Server terminal wants to open a lot of data link pools, will the server's memory consumption will be tight?
The younger brother has an idea, but there is no time to practice.
I can say it: I create a database agent at the server side, and the database is opened to the database, and then this agent timed, write to the database, the chat room timing scan agent output (can be a log (HTTP) Mode), or directly output to the Socket port (Applet mode), when writing data,
Mainly in order to avoid a large number of operations on the database, causing server overload.