First of all, this has nothing to do with webrtc . Basically you need a chat-server , a server that sends data from one client to another.
Secondly, the server type does not matter for the amount of RAM required to run it. The important thing is how many clients you will have at the same time. (to some extent, game servers obviously consume more RAM even without clients ).
Thirdly, more RAM does NOT mean faster processing. That is, if you do not fully use the available RAM , adding more will not do you any good. Obviously, when you exceed the available RAM , things start to slow down. Read more about this here
Now, with those who are out of the way, let's see what you need. You can make a very rough estimate by connecting several clients to the server and see how much RAM it uses. Check if the amount of RAM increases if these clients start calling each other and how much they increase. You now have the minimum and maximum amount of RAM for x clients . I would do this test with about 10 clients .
Now that you can make an assessment, calculate how much the minimum and maximum RAM for your expected user base. This will become an increasingly preferable thing from here, but I would at least double this amount, and then round to the nearest amount of RAM , which βmakes senseβ (14.7 GB becomes 16 GB, 28.32 GB - 32 GB, etc. ....)
I will add from my own experience with webrtc about 1000-1500 simultaneous users, that 8 GB is quite simple. But it really depends on the number of users you expect.
On the node side, I highly recommend nodejs for the server. It is very easy to use, any programmer who knows javascript (so basically any programmer) can create a chat-server in nodejs in a day or two. Take a look at this open source webrtc server in nodejs
source share