docs icon indicating copy to clipboard operation
docs copied to clipboard

Add example of how to rate limit per-connection

Open realyze opened this issue 3 years ago • 1 comments

I just got bitten by rate-limiter thinking by default the rule applies to each connection separately. This example should help educate users that it is not in fact the case unless you add connectionId() { return true; }.

realyze avatar Jul 19 '21 00:07 realyze

Hi @realyze ! Thanks for the submission! Could you maybe add comment into the connectionId function that explains why that part is required or at least highlights that it is required so that people don't throw it out by accident?

Thanks!

StorytellerCZ avatar Jul 19 '21 15:07 StorytellerCZ