Change limiter rate on the fly
Closed this issue · 2 comments
aksh-gupta commented
Can we change the period and limit on the fly?
I have the limit and period stored in DB and want to change it in DB and it should reflect as a new period and limit.
aksh-gupta commented
I changed the limiter instance's Rate in the KeyGetter
function and that allowed to change rate in realtime.
novln commented
There is also this solution: ulule/limiter-examples#4 (comment)
Glad you find a solution.