notexOPENOverview
Notex/Systems/Rate limiting rules
04.08LESSON 08 OF 14 · 1 MIN READ

Rate limiting rules

Always free to read
SECTION VIDEORate limiting rules

Video coming soon. Start with the reading below.

COMING SOON

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.

Progress is saved on this device.
KEEP EXPLORING

One note leads to another.

Back to the library →
⌕
Search across the entire library ⌘ K