Rate limiting
Rate limiting is preventing an operation from happening more times than a defined limit. For example, 100 requests per minute per user. In large systems it's used to protect the underlying services and resources, and to keep shared resources available. It also protects APIs from overuse, whether unintended or malicious. It's like a limit of 3 tickets per person at a concert: that way one person can't buy them all.
In a distributed system, counting is hard. If each of 4 nodes counts on its own, a user with a limit of 100 can make 100 on each node: 400 in total. One solution is sticky sessions in the load balancer, so each user always goes to the same node, but you lose fault tolerance and scaling. Another is a central store like Redis, which adds latency and opens the door to race conditions. It's like 4 ticket booths that don't talk to each other: each sells 3 tickets per person and someone buys 12.
When a client goes over the limit, the server answers with an error, for example HTTP 429 «too many requests», and usually tells it when it can try again. A well-built client waits and retries, ideally with exponential backoff, instead of insisting instantly. It's like a full shop's «come back in 10 minutes»: if you come back in 1 second, they tell you the same thing.
