Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ratelimit prediction #2188

Open
wants to merge 65 commits into
base: master
Choose a base branch
from
Open

feat: ratelimit prediction #2188

wants to merge 65 commits into from

Commits on Jul 27, 2023

  1. Configuration menu
    Copy the full SHA
    c104192 View commit details
    Browse the repository at this point in the history
  2. refactor: remove offset

    VincentRPS committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    b04175c View commit details
    Browse the repository at this point in the history
  3. chore: remove offset comment

    Signed-off-by: VincentRPS <[email protected]>
    VincentRPS authored Jul 27, 2023
    Configuration menu
    Copy the full SHA
    ba09efb View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2023

  1. Configuration menu
    Copy the full SHA
    6762a73 View commit details
    Browse the repository at this point in the history
  2. refactor!: move global concurrency to http client and temporary bucke…

    …ts to bucketstorage
    
    also adds the ability to modify bucket storage for distribution or shared data, using something like Redis.
    VincentRPS committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    2fb51ca View commit details
    Browse the repository at this point in the history
  3. chore: finishing touches

    VincentRPS committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    6a1097c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    32f5cbd View commit details
    Browse the repository at this point in the history
  5. chore: update changelog

    VincentRPS committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    f80550a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    292b4fe View commit details
    Browse the repository at this point in the history
  7. chore: fix typo in changelog

    Co-authored-by: JustaSqu1d <[email protected]>
    Signed-off-by: VincentRPS <[email protected]>
    VincentRPS and JustaSqu1d authored Jul 31, 2023
    Configuration menu
    Copy the full SHA
    4f64493 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    325e670 View commit details
    Browse the repository at this point in the history
  9. feat!: support webhooks

    pain. it was all pain.
    VincentRPS committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    1496106 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    ac8a68b View commit details
    Browse the repository at this point in the history
  11. fix: a little oopsy daisy

    Forgot to add bucket storage to slots.
    
    Signed-off-by: VincentRPS <[email protected]>
    VincentRPS authored Jul 31, 2023
    Configuration menu
    Copy the full SHA
    806939e View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2023

  1. refactor: bucket subsuction

    Co-authored-by: Emre Terzioglu <[email protected]>
    Signed-off-by: VincentRPS <[email protected]>
    VincentRPS and EmmmaTech authored Aug 3, 2023
    Configuration menu
    Copy the full SHA
    1296843 View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2023

  1. Configuration menu
    Copy the full SHA
    2b2f2b2 View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2023

  1. Configuration menu
    Copy the full SHA
    b995647 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3283f3a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    65f4246 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9d33ee0 View commit details
    Browse the repository at this point in the history
  5. fix: damn you client >:(

    VincentRPS committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    109ba10 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8c48cc2 View commit details
    Browse the repository at this point in the history
  7. chore: thanks emre :)

    Co-authored-by: Emre Terzioglu <[email protected]>
    Signed-off-by: VincentRPS <[email protected]>
    VincentRPS and EmmmaTech authored Aug 5, 2023
    Configuration menu
    Copy the full SHA
    9fe2646 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    37039dc View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2023

  1. Configuration menu
    Copy the full SHA
    2ea1e80 View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2024

  1. Configuration menu
    Copy the full SHA
    27b6120 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4787982 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    38feea0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d61d0ab View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6a2aefe View commit details
    Browse the repository at this point in the history
  6. refactor!(webhooks): revert rate limit prediction implementation

    Webhook rate limits are too unpredictable.
    VincentRPS committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    4b9a3fc View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0de14db View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ba3c20f View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2024

  1. bulk: merge Doru's suggestions

    Co-authored-by: Dorukyum <[email protected]>
    Signed-off-by: VincentRPS <[email protected]>
    VincentRPS and Dorukyum authored Jan 4, 2024
    Configuration menu
    Copy the full SHA
    6c1465f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    06bca8e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    532071d View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2024

  1. docs: updates

    Dorukyum authored Jan 6, 2024
    Configuration menu
    Copy the full SHA
    1b57349 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7da74a6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a47dd73 View commit details
    Browse the repository at this point in the history
  4. docs: more information

    Dorukyum authored Jan 6, 2024
    Configuration menu
    Copy the full SHA
    d6af4c7 View commit details
    Browse the repository at this point in the history
  5. docs: more updates

    Dorukyum authored Jan 6, 2024
    Configuration menu
    Copy the full SHA
    9489a92 View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2024

  1. refactor: miscs

    VincentRPS committed Jan 7, 2024
    Configuration menu
    Copy the full SHA
    3376bfa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f413d19 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1084ab3 View commit details
    Browse the repository at this point in the history
  4. refactor: clean code

    Dorukyum authored Jan 7, 2024
    Configuration menu
    Copy the full SHA
    c5ad2d9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6331678 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    fe0e6f0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    48a4571 View commit details
    Browse the repository at this point in the history
  8. docs: make DynamicBucket docs more descriptive

    Signed-off-by: VincentRPS <[email protected]>
    VincentRPS authored Jan 7, 2024
    Configuration menu
    Copy the full SHA
    54c37b7 View commit details
    Browse the repository at this point in the history
  9. chore: make bucket_storage parameter optional

    Signed-off-by: VincentRPS <[email protected]>
    VincentRPS authored Jan 7, 2024
    Configuration menu
    Copy the full SHA
    2900770 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    88cd5f6 View commit details
    Browse the repository at this point in the history
  11. fix: bucket_storage keyword in client

    Signed-off-by: VincentRPS <[email protected]>
    VincentRPS authored Jan 7, 2024
    Configuration menu
    Copy the full SHA
    c505f8c View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2024

  1. Configuration menu
    Copy the full SHA
    264ffea View commit details
    Browse the repository at this point in the history
  2. docs(client): per: int -> float

    Signed-off-by: VincentRPS <[email protected]>
    VincentRPS authored Jan 8, 2024
    Configuration menu
    Copy the full SHA
    72f9622 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2024

  1. chore(changelog): improve log clarity

    Co-authored-by: Emre Terzioglu <[email protected]>
    Signed-off-by: VincentRPS <[email protected]>
    VincentRPS and EmmmaTech authored Jan 24, 2024
    Configuration menu
    Copy the full SHA
    cf80568 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ac2e27b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fb5d773 View commit details
    Browse the repository at this point in the history
  4. fix: temp bucket overriding

    Summary: if two or more requests get rate limited at the same time with the same bucket, they will override each other.
    
    To fix this without using any locks, we just set the temp bucket before any rate limit can happen, and set it to rate limited once there is one, therefore the only thing being overridden in the `rate_limited` variable to True.
    VincentRPS committed Jan 24, 2024
    Configuration menu
    Copy the full SHA
    9bd1953 View commit details
    Browse the repository at this point in the history
  5. Merge branch 'master' into ratelimit-prediction

    Signed-off-by: VincentRPS <[email protected]>
    VincentRPS authored Jan 24, 2024
    Configuration menu
    Copy the full SHA
    3889249 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    123544e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    1df061b View commit details
    Browse the repository at this point in the history
  8. fix: wrong attribute in slots

    Signed-off-by: Dorukyum <[email protected]>
    Dorukyum authored Jan 24, 2024
    Configuration menu
    Copy the full SHA
    c9307d7 View commit details
    Browse the repository at this point in the history
  9. fix: temp bucket usage

    rate_limited is now set to False by default.
    There is a lock on .use to prevent multiple requests from all releasing requests at the same time.
    
    Signed-off-by: VincentRPS <[email protected]>
    VincentRPS authored Jan 24, 2024
    Configuration menu
    Copy the full SHA
    0dd79b5 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    a7914ab View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    c6b20af View commit details
    Browse the repository at this point in the history