This repository was archived by the owner on Apr 4, 2026. It is now read-only.
perf: optimize Redis connection usage and event processing#66
Merged
Conversation
- Reduce pool size from 200 to 50 (fred's auto-pipelining needs fewer connections) - Implement batch ACKs to reduce round-trips from N to 1 - Replace RwLock with AtomicU64 for lock-free metrics updates - Increase xreadgroup block timeout from 10ms to 2s to reduce CPU busy-waiting - Remove unused config options (idle_timeout_secs, max_connection_lifetime_secs) - Add comprehensive tests for atomic metrics and concurrency - Add CI code coverage job with 40% threshold enforcement 🤖 Generated with [Claude Code](https://claude.ai/code)
- Add scripts/pre-commit hook that runs cargo fmt --check and clippy - Add scripts/setup-hooks.sh for easy hook installation - Fix formatting and clippy issues 🤖 Generated with [Claude Code](https://claude.ai/code)
Previously, claim_stale() was called when there were no new messages, but the claimed entries were discarded instead of being returned for processing and acknowledgment. This caused messages to accumulate delivery attempts (650+) without ever being processed or ACK'd. The fix returns the claimed stale entries so they flow through the normal processing pipeline and get properly acknowledged. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Performance Impact
Test plan
🤖 Generated with Claude Code