Answer the question
In order to leave comments, you need to log in
How to store messages on the chat server?
There was a need to store messages of users who communicate in a chat. Where to store them? In a DB, in a text file?
Answer the question
In order to leave comments, you need to log in
And then what should be done with these messages?
How big is the load and the cost of missing messages?
If the load is small and you need the last 20 chat messages, I would store it in a file, and if the cost of loss is zero, then in the chat daemon's memory...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question