limit of dynamic route
gzhhong opened this issue · 1 comments
gzhhong commented
Hello,
I have a post request like /route/{id}, where the id can be dynamic value like 001 or 002 or other, when I add limiter, i.e. 2-S, as middleware on the request, I want to ensure that when user post to /route/001 more than 2 times per second, they will be rejected by 429, but if he/she post to /route/001 then to /route/002 then to /route/003, even it happens in one second, they can still be accepted. Currently in my test the post to /route/003 failed by 429.
Thanks,
james