If I were to make a messaging app like facebook messenger, how many users can a server with 512gb of ram, 2 intel xeon processors, a 1tb hard drive?
Impossible to say.
How efficient is your code?
What is the frequency of writes to the backend?
What is the frequency of reads from the backend?
How much bandwidth, in and out, do you have?
Where are you hosting this? (hopefully, not at home)