More servers or higher specs?

Asked 2 years ago, Updated 2 years ago, 73 views

Please tell me how you think about upgrading your web server.

"As the number of users of the site increases, the loading of web pages is getting heavier."(Of course, there are ways to improve the program and optimize it, but please limit this time to solutions from the server.)

  • Add Load Balancer to Increase Web Servers
  • Enhancing Web Server Performance

I can think of these two things, but what kind of situations are they suitable for?Please let me know if there is anything else.

Also, I think there are many reasons why it gets heavy.

  • Simply accessible and waiting for processing
  • Not enough concurrent connections
  • Insufficient network bandwidth for transfer volume

and so on.
Please tell me that this is the best case.

I don't know much about the server, so I'd appreciate it if you could stick it in if there's anything missing or wrong.

apache nginx

2022-09-30 20:56

2 Answers

Generally speaking,

  • Scale-up can be easy and tough
  • Scaling out a system that does not consider scaling out is difficult

That's about it.

In the end, scaling up or out is nothing more than a resource estimate and system configuration creation, so it is recommended that you study system design properly in books.

"What is the best case for each?" "This is the case, so this is the best case" is not a good question for many respondents (check Close Questions), and just collecting a few of those "cases" doesn't help the real situation.


2022-09-30 20:56

According to the conditions of your question, either method seems to solve the problem.

The real problem is that the "budget" accounts for a considerable amount of weight and
Other requirements (how far do you expect future load, fault tolerance, operational costs, Etc..)
Finally, the best solution is determined.

It's easier and cheaper to scale up on a smaller scale, but over a certain scale it's cost-effective and you can't handle it when you get to where you are.

Therefore, if it is expected to exceed or exceed a certain size, I think the basic route is to scale out to two or three including load balancers.

// I'm sorry if you missed the target.


2022-09-30 20:56

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.