Guilherme Camargo

19%
Flag icon
•It is usually necessary to have different buckets for different API endpoints. For instance, if a user is allowed to make 1 post per second, add 150 friends per day, and like 5 posts per second, 3 buckets are required for each user.  •If we need to throttle requests based on IP addresses, each IP address requires a bucket. •If the system allows a maximum of 10,000 requests per second, it makes sense to have a global bucket shared by all requests.
System Design Interview – An insider's guide
by Alex Xu
Rate this book
Clear rating
Open Preview