Skip to content

feat(rate-limit): #354 per-wallet and global claim submission limits - #443

Merged
jhayniffy merged 1 commit into
InsurNiffy:mainfrom
Chibey-max:blackboxai/354-claim-rate-limiting
Apr 24, 2026
Merged

feat(rate-limit): #354 per-wallet and global claim submission limits#443
jhayniffy merged 1 commit into
InsurNiffy:mainfrom
Chibey-max:blackboxai/354-claim-rate-limiting

Conversation

@Chibey-max

Copy link
Copy Markdown
Contributor
  • Add WALLET_RATE_LIMIT_DEFAULTS and GLOBAL_RATE_LIMIT_DEFAULTS constants
  • Add checkWalletLimit() using Redis sorted-set sliding window
  • Add checkGlobalLimit() circuit breaker using Redis sorted-set
  • Update RateLimitGuard to check global → wallet → policy in order
  • Attach Retry-After header on 429 responses for all limit types
  • Update RateLimitException with retryAfterSeconds and limitType fields
  • Document rate limit values and rationale in rate-limiting.md
  • Add unit tests for wallet and global limit behavior

closes #354

…on limits

- Add WALLET_RATE_LIMIT_DEFAULTS and GLOBAL_RATE_LIMIT_DEFAULTS constants
- Add checkWalletLimit() using Redis sorted-set sliding window
- Add checkGlobalLimit() circuit breaker using Redis sorted-set
- Update RateLimitGuard to check global → wallet → policy in order
- Attach Retry-After header on 429 responses for all limit types
- Update RateLimitException with retryAfterSeconds and limitType fields
- Document rate limit values and rationale in rate-limiting.md
- Add unit tests for wallet and global limit behavior
@drips-wave

drips-wave Bot commented Apr 23, 2026

Copy link
Copy Markdown

@Chibey-max Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@jhayniffy
jhayniffy merged commit b6c55f1 into InsurNiffy:main Apr 24, 2026
2 of 8 checks passed
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.

Backend — Claim submission rate limiting: per-wallet and global limits

2 participants