Pages tagged "Rust"

Cover Image of the post 'Let's build a Load Balancer in Rust - Part 2'

Let's build a Load Balancer in Rust - Part 2

Hi 👋 welcome to a new post! This is the second part of the series “Let’s build a Load Balancer in rust”. In the first post we saw how to forward a single request to an upstream server, using Actix and Reqwest. Today we’ll see how to implement a round-robin policy, to forward our requests to multiple backends! Small fix in the handler In the first part, we left a (small) code smell in the handler code, because we instantiate the reqwest client struct on each new request received:
Cover Image of the post 'Let's build a Load Balancer in Rust - Part 1'

Let's build a Load Balancer in Rust - Part 1

Hi 👋 welcome to a new post!

This will be the first of a short series of posts, in which I explain my poor attempt at creating a simple HTTP load balancer in Rust.