A Basic Load Balancer

In this project, we’ll develop a basic load balancer that can evenly distribute incoming traffic across two separate APIs, each of which returns different responses. To accomplish this, we’ve built a Flask application that’s responsible for calling the APIs and directing traffic between them using a round robin algorithm.

With round robin, incoming traffic is alternately directed to each API in turn. For example, if the first request goes to API1, the second request will be directed to API2, the third to API1, and so on. This ensures that the traffic is distributed fairly and helps prevent one API from being overwhelmed by traffic.

By building this basic load balancer, we can demonstrate how even a simple approach can help improve the performance, availability, and reliability of distributed systems.