Scaling a web server

Top Comments

  • 1- Find the bottleneck and optimize the system by solving it before increasing the resources. 2- Distributing a set of tasks to set of resources and it's used to direct each request to appropriate server.

    Posted 3 years ago
    • 1) Find bottleneck. 1 server at $20/month should be enough for 1 million visitors. Try to optimize for 1 server first. 2) To direct users to which of the multiple database servers to use.

      Posted 3 years ago

      Other Comments

      • Rule of Thumb for Scalability Issues: Remember to "scale out, not up." It's better to distribute workload across multiple servers horizontally for better scalability. Role of a Load Balancer and Why it's Used: Load balancers distribute incoming requests among multiple servers, optimizing resource utilization and ensuring high availability by evenly spreading the workload.

        Posted 21 days ago
        • Should optimize a single server first and then if the requests get massive that time add more server and implement load balancers.

          Posted 4 months ago
          • 1. Find the bottleneck. When the bottle neck is the hosting server, avail a server close to your target costumers. When the bottleneck is the workers, optimize the code (instructions) that they are executing by taking note of the Big O Notation. When the bottleneck is the database, optimize it first via indexing. Your web server should be based on your application. Event-based servers are good for providing services that caters which ever finishes first, while Thread-based servers follow the first in, first out (FIFO) principle. If it still gives a bottleneck, upgrade your hardware or more computers. Then implement load balancers to balance out loads (requests) and direct it to servers that are not that loaded. 2. Load balancers are like receptionists with added responsibility. They take the request and hands it to workers or "servers" that are less loaded. It solves the problem of one server getting overloaded of requests than the other. I've learned that we should optimize a single server first and then if the requests get massive then that's when we add more servers and implement load balancers.

            Posted 7 months ago
            • You have to find the bottle neck first that causig the issue and solve it. After you done that is still have issues then upgrade or add resources. Load balancer are a set of tasj that is distributed to make process much faster.

              Posted 9 months ago
              • 1. To find the bottlenecking 2. Role is to balance the load of the specific system, It is to make the flow of the system much more fluid and smoother.

                Posted 11 months ago
                • he he he

                  Posted 1 year ago
                  • 1.) Always find the bottleneck on a single server first. If that is not enough then you get more servers or seperate the services. 2.) Load balancers are like receptionist that balances the "loads" or request on the multiple servers.

                    Posted 1 year ago
                    • 1. First of all find where the bottleneck is, if the server is not using its complete resources then we should have optimized the codebase or database organization or front-end of the application. 2. A load balancer in simple words is software that assists users to find the right server for their request, it points to the specific server that is not loaded with full requests.

                      Posted 1 year ago
                      Delete comment?