Skip to content

refactor(load-biaser): Remove unused retry-after hint caching#4571

Open
adleong wants to merge 2 commits into
mainfrom
alex/remove-hint-caching
Open

refactor(load-biaser): Remove unused retry-after hint caching#4571
adleong wants to merge 2 commits into
mainfrom
alex/remove-hint-caching

Conversation

@adleong

@adleong adleong commented Jun 11, 2026

Copy link
Copy Markdown
Member

The load biaser uses CachedRateLimitHint to cache retry-after hints from a response in the response extension metadata. However, the only place this is ever read is immediately after caching it. Therefore, we can simplify by skipping the caching altogether and just using the value directly after it's parsed.

This also allows us to get rid of CachedRateLimitHint entirely.

Signed-off-by: Alex Leong <alex@buoyant.io>
@adleong adleong requested review from cratelyn and unleashed June 11, 2026 20:12
@adleong adleong requested a review from a team as a code owner June 11, 2026 20:12
Signed-off-by: Alex Leong <alex@buoyant.io>

@cratelyn cratelyn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks good to me, but i believe that @unleashed should approve this as the author of the underlying code in question.

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.

2 participants