asp.netperformance-estimationserver-load

ASP.Net number of servers estimation


Let's assume our average page weights P KBytes and we've got N visits per unit time (let's say, per hour). How could we estimate the number of servers needed to support this load with a reasonable response time?


Solution

  • There are so many factors to server performance (CPU, RAM, I/O, cache, local or external database, networking, etc) that you can't even guesstimate the amount of servers needed for a given project.

    I find anybody who tries to figure this out is going down tho wrong path, because they often have some unrealistic idea that the site they are going to make it going to be insanely popular.

    My advice, just build your app and use 1 server, assume you might need a server farm, so build your software according (which in .NET pretty much means you don't do anything different). Only buy more servers when you have an actual need, buying/renting servers in anticipation will always lead to wasted money, you're not Amazon nor Google, you can't accurately assume future expansion until you have current figures.

    I think you'll find 1 good server is surprisingly fast and can handle a lot of users. Keep in mind StackOverflow (last I saw) only runs on 2 servers; a web server and a database server... that's it.