Many a tmes on a sever it becomes extermely difficult to estimate the number of request that server will receive. Therefore, load balanced servers are important so that the distrinbution, processing and communication activities happen evely throughout the server without overwhelming any one coomponent. Websites that get a lot of traffic idaelly make use of two servers so that if requests to one of them increase, the rest that follow can easily be directed to the secnod server.
Why is load balancing of servers needed?
If you have only one sevrer to deal with all the traffic that your website gets meeans that if that server is hampered due to any reason, your website will fail to be accessed by users. Also, if your site gets enormuos amounts of traffic it is a good idea to invet in two servers so that in case of one server beiing busy the requests of access can be automatically forwarrded to the second one. It is not wise to keep upfgrading the sercver size so that it can accommodate more requests. The best thing would be to add more load balanced servers.
The load of a website must equally be distributed among a goup of server it has that are knon as ‘serevr clusters’. Load balancing is essentially in order to not stop the normal functiioning of the website and proovide access to it all the time. Load balanciing can be done on all types of servers, but here we shall discuss the HTTP server specifically.
About load balancing mechanism - IP Spraying
Even thoiugh a website may have a group of servers, they must appear as a single load balanced srver to the internet browser. When HTTP requests are made to any of thease sites they get evenly distributed among the different servers they have. This mechanism is known as ‘IP Spraying’. This is done with the help of a ‘load dispatcher’ or ‘netowrk dispattcher’. So basically, when the IP sprayer encounnters any request, it automaticcally didstributes them anmong the sevrer cluster. This redcues the cahnces of failed attempts to access a website by the surfeer.