Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Rate limiting rules

Sumit Rawal answered on May 21, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • rate limiting
  • Why do we need a rate limiter?#

  • Rate limiting rules

    0

    Lyft open-sourced their rate-limiting component [12]. We will peek inside of the component and look at some examples of rate limiting rules:

    domain: messaging

    descriptors:

    - key: message_type

    value: marketing

    rate_limit:

    unit: day

    requests_per_unit: 5

    In the above example, the system is configured to allow a maximum of 5 marketing messages per day. Here is another example:

    domain: auth

    descriptors:

    - key: auth_type

    value: login

    rate_limit:

    unit: minute

    requests_per_unit: 5

    This rule shows that clients are not allowed to login more than 5 times in 1 minute. Rules are generally written in configuration files and saved on disk.

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on May 21 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.