Rapptz c17eb31328 Rewrite rate limit handling to use X-Ratelimit-Bucket and a semaphore
This should increase throughput of the number of requests that can be
made at once, while simultaneously following the new standard practice
of using the rate limit bucket header.

This is an accumulation of a lot of months of work between a few people
and it has been tested extensively. From the testing it seems to work
fine, but I'm not sure if it's the best way to do it.

This changeset does not currently take into consideration sub
rate limits yet, but the foundation is there via Route.metadata. In the
future, this metadata will be filled in with the known sub rate limit
implementation to allow them to have separate keys in the rate limit
mapping.

Co-authored-by: Josh <josh.ja.butt@gmail.com>
2022-07-19 00:07:28 -04:00
..
2022-06-29 22:38:04 -04:00
2022-06-27 00:47:52 -04:00
2022-07-17 01:07:33 -04:00
2022-05-05 11:35:26 -04:00
2022-07-07 19:30:03 -04:00
2022-07-07 19:30:03 -04:00
2022-04-20 06:49:28 -04:00
2022-07-07 19:30:03 -04:00
2022-04-01 15:25:03 -04:00
2022-07-06 05:56:58 -04:00
2022-07-07 19:30:03 -04:00
2022-02-20 08:04:58 -05:00
2022-07-11 00:05:09 -04:00
2022-02-20 08:04:58 -05:00
2022-05-16 15:30:03 -04:00
2021-08-22 02:25:13 -04:00
2022-07-11 00:05:09 -04:00
2022-04-02 04:58:39 -04:00
2022-07-17 21:40:05 -04:00
2022-06-23 04:17:56 -04:00
2022-04-02 04:58:39 -04:00