The chat history is actually not that hard. If I count about 100 bytes per message, 6 messages per minute and 5 hours a day (although this is very talkative chatter), constantly , as the worst case, which will give about 61 MB per user per year (!). This means that with 1 million chatty chatter ( very impossible) you will need about 58 TB or data storage.
Saying that this is the worst calculation, I would start with a maximum memory of 1 TB, set up a database and see how everything will be. It is very disadvantageous for a very young service to develop rapidly.
Also, I personally would not recommend using Windows for something like this if you don't know what you are doing. MySQL will store billions of records in the Debian distribution and will probably do it faster due to lower OS-level restrictions (see the MySQL documentation for details), and there should be a section on Windows restrictions).
source share