I’ll introduce what I researched about the Leaky Bucket algorithm.
The leaky bucket algorithmAll Shopify APIs use a leaky bucket algorithm to manage requests. This algorithm lets your app make an unlimited amount of requests in infrequent bursts over time.
Quote from: The leaky bucket algorithm - Shopify API rate limits
Here’s a list of articles I read to understand the Leaky Bucket algorithm:
The Japanese Wikipedia version of “Leaky Bucket” is written simply, so if you want to know more details, please read the English Wikipedia version of “Leaky bucket”.
There was a case where PAY.JP adopted the leaky bucket algorithm for introducing Rate Limits, so I read these articles as well.