Skip to content

Perf: Batcher policy refactor#1583

Open
tkan145 wants to merge 5 commits into
3scale:masterfrom
tkan145:batcher-refactor
Open

Perf: Batcher policy refactor#1583
tkan145 wants to merge 5 commits into
3scale:masterfrom
tkan145:batcher-refactor

Conversation

@tkan145
Copy link
Copy Markdown
Contributor

@tkan145 tkan145 commented May 28, 2026

TBA

tkan145 added 5 commits May 28, 2026 13:16
New keys can be added by concurrent requests. And keys read by get_keys()
can be incremented by add() between read and delete operations, resulting
in the loss of those increments. Therefore, moving get_keys() inside the lock
to prevent a race condition as add() will block on the same service_id lock.
Each key is matched against all 4 regex pattern, credential type can be
extract directly from key, so refactoring to avoid lookup loop.
@tkan145 tkan145 requested a review from a team as a code owner May 28, 2026 03:17
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