Grokking Operating Systems and Networking for Backend Engineers
Vote

0% completed

​

Seeing the Real Client

Checkout's fraud check records the address of every customer who places an order. It takes that address from one line of the request handler:

peer_ip = self.client_address[0]

Before the service moved behind a load balancer, the line returned each customer's own address. After the move, it returned 10.0.2.1 for every order from every customer. The fraud check now saw one very busy customer. The rate limit, meant to stop a single abusive client, began to block everyone at once.

The line is correct

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content