In: Computer Science
Respond to the following in a minimum of 175 words:
Consider a potential business problem that would require a computer program solution.
How could an algorithm be used to solve a problem that a business may encounter? Provide specific examples.
Businesses used to run their application on their servers, but there was no proper concept of routing the traffic equally to the application Servers. So, the concept of load balancing came into the picture. This is nothing but a computer program that is designed to distribute equal number of traffic to the servers such that the servers will not crash due to excessive traffic loads.
Generally the load balancer uses an algorithm known as the round robin algorithm. The function of this algorithm is used to distribute traffics equally to all the servers. For example, if there are 3 servers and 3 request are coming, then the round robin algorithm of the load balancer will distribute 1 traffic each to all the servers thus maintaining an equality among the servers. The requests are then distributed across the servers in a sequential manner such that one server will not receive the load alone. This actually helps in maintaining a balance between the servers and ensures that your application servers are serving the request properly. Nginx is one such popular proxy server which has a load balancing software fitted in it.