Persisting the limiter state #30
discoverlance-com
started this conversation in
Ideas
Replies: 1 comment 7 replies
-
This is a good idea. We should probably have some dependency injection strategy to support persisting and resuming state. That would also make Pacer much more viable on the server. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way we can persist the state of the limiters?
For instance, whilst refreshing the page, if I could persist my rate limit, that will be great else the user just needs to refresh and the previous limiter applied will be lost.
So if I could persist it's state perhaps through some sort of storage drivers like localstorage, cookie or something else of choice. Where the storage driver can just be logic that needs to be implemented or an api interface which can give the user options to persist it to other states even external if they need to do so.
Beta Was this translation helpful? Give feedback.
All reactions