php - Chat using nodejs+socket.io and mysql -


so want develop chat system based on nodejs , socket.io, have made prototype , works, thing stuck in mind how store chat messages in database.

i guess not idea store message when user hits enter button, because live chat have 1000 user in 30-60 min.

the question when store data in database, because don't think storing right away when user hits enter work on long term?

the chat works on same idea facebook.

if not saving messages @ moment, how plan save them when want to?

the messages sent have been delivered client , server no longer has them, , can't use client store them in database.

you need store messages user sends them.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -