this post was submitted on 01 Mar 2025
21 points (100.0% liked)

Programming

13492 readers
1 users here now

All things programming and coding related. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS
 

Let's say I have to host 25 websites.. How do I know how powerful should my VPS be? Which specs it should have, how fast the connection should be to handle X visits per day?

How do you understand which are your system requirements BEFORE deploying a project? Do you just make estimates and then scale up? Or there's some kind of tool to benchmark? how to handle this kind of stuff?

you are viewing a single comment's thread
view the rest of the comments
[–] jarfil 8 points 1 week ago

You can run a stress test, and compare your desired response times with the resource usage on the server side.

https://en.wikipedia.org/wiki/ApacheBench

Take into account all the requests needed to load a website, and the fact that:

  • if it takes more than 2 seconds, about 50% of your visits will leave
  • 3 seconds or more, and most people will start thinking it's down
  • Google tries to keep theirs under 500ms

Loading some content in 100ms, then loading more in the background, is a reasonable compromise. You may want a very quick response time for the first few requests, then put the rest on a possibility slower server, or running at a lower priority.