Skip to content

add rate‑limiting helper with SQLite persistence - #2842

Open
cornyburrito wants to merge 1 commit into
stashapp:masterfrom
cornyburrito:pr/py-common-ratelimit
Open

add rate‑limiting helper with SQLite persistence#2842
cornyburrito wants to merge 1 commit into
stashapp:masterfrom
cornyburrito:pr/py-common-ratelimit

Conversation

@cornyburrito

Copy link
Copy Markdown
  • Provide 'get_limiter_session()' to obtain a 'LimiterSession' with configurable request limits and persistent state.
  • Store bucket state in a local SQLite file, enabling consistent throttling across separate process invocations.

Simple addition but may be beneficial to keep the required db in a single location. This may also serve as a base if somebody wants to add a new limiter with a different strategy.

- Provide 'get_limiter_session()' to obtain a 'LimiterSession'\n  with configurable request limits and persistent state.\n- Store bucket state in a local SQLite file, enabling consistent\n  throttling across separate process invocations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant