Skip to content

Conversation

@gacevicljubisa
Copy link
Member

@gacevicljubisa gacevicljubisa commented Oct 30, 2025

Checklist

  • I have read the coding guide.
  • My change requires a documentation update, and I have done it.
  • I have added tests to cover my changes.
  • I have filled out the description and linked the related issues.

Description

Implements exponential backoff with jitter for overdraft balance refresh retries to reduce log spam and improve system resilience.

Changes:

  • Exponential backoff: Replace fixed 600ms delay with exponential backoff (1.2x multiplier, max 5s)
  • Jitter: Add ±10% random variation to prevent thundering herd effects
  • Reduced logging: Log first 3 attempts then every 5th attempt (1,2,3,6,11,16...)
  • Backoff reset: Reset delay when overdraft condition resolves

Open API Spec Version Changes (if applicable)

Motivation and Context (Optional)

Related Issue (Optional)

Screenshots (if appropriate):

@gacevicljubisa gacevicljubisa requested a review from janos October 31, 2025 14:18
@gacevicljubisa gacevicljubisa merged commit 4ab44aa into master Nov 3, 2025
15 checks passed
@gacevicljubisa gacevicljubisa deleted the overdraft-backoff-delay branch November 3, 2025 09:33
@gacevicljubisa gacevicljubisa self-assigned this Nov 3, 2025
gacevicljubisa added a commit that referenced this pull request Nov 4, 2025
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.

Reduce overdraft balance refresh log spam with exponential backoff

5 participants