Relax API Rate Limits for Self-Hosted Deployments #2465
Reference in New Issue
Block a user
Delete Branch "julianojulio/relax-rate-limits-for-self-hosted"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR introduces changes to significantly relax API rate limits for self-hosted instances of Maybe Finance, while preserving the current limits for the SaaS version.
Rationale
When importing a large number of transactions via the API in a self-hosted environment, the existing rate limits quickly become a bottleneck. This change enables power users and integrators to perform bulk imports and other high-frequency operations without being blocked by rate limiting, while ensuring that SaaS users remain protected from abuse.
Key changes
NoopApiRateLimiterto effectively disable API rate limiting for self-hosted mode.ApiRateLimiterto delegate toNoopApiRateLimiterwhen running self-hosted.NoopApiRateLimiterto ensure correct behavior.Impact
Use case:
I'm working on a project (soon open source) to import my transactions to Maybe Finance using the API. The current rate limits are blocking the import after a few imports. These changes keep the current rate limits for SaaS while relaxing them
Changes make sense to me! If you could get all tests / checks passing we can merge.