Round-robin load-balancer with other repls as backends
This is a load-balancer that uses other repls as backends. That way you can build a scalable service on repl.it!
@HappyFakeboulde so imagine you build a web app and it gets really popular. Your server might not be able to handle the load.
What you could do then is replicate the server multiple times and now you have multiple servers with the same code running that could handle the requests. This is called horizontal scaling. But you need some way to distribute the requests between servers:
A load-balancer receives a request and by using some distribution algorithm (this one just distributes it evenly) and it forwards it to one of the backend servers.