Conversation
ISSUE line#21 Add ready_for_review type to pull-request-event
add annotation target (ANNOTATION_CLASS)
…creation or modification of the cache)
[ISSUE line#27] Allow us to choose when the req-shield is triggered (creation or modification of the cache)
[ISSUE-26] Feature Request: Dynamically Generating Keys - SpEL Support
…' into feature/issue-26-key-generator
* remove comments
[ISSUE-26] Feature Request: Dynamically Generating Keys - keyGenerator support
ykhfree
force-pushed
the
feature/issue-39
branch
from
August 10, 2025 11:32
7ca98ae to
d186794
Compare
… Lock Management
ykhfree
force-pushed
the
feature/issue-39
branch
from
August 10, 2025 11:32
d186794 to
a735c14
Compare
ykhfree
marked this pull request as draft
August 10, 2025 11:33
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Performance Optimization: Core Module Thread Pool and Lock Management
📋 Summary
This PR optimizes the core module's performance by addressing thread pool configuration and lock lifecycle management bottlenecks identified through comprehensive async performance analysis.
🎯 Changes Made
File: core/src/main/kotlin/com/linecorp/cse/reqshield/config/ReqShieldConfiguration.kt
File: core/src/main/kotlin/com/linecorp/cse/reqshield/KeyLocalLock.kt
Key Improvements:
✅ Test Coverage
Added comprehensive test coverage maintaining 80%+ requirement:
New Test Files:
Test Scenarios Covered:
📊 Performance Impact
🔍 Technical Analysis
This optimization addresses specific bottlenecks identified in the core module:
🚨 Important Note: Unlock Logic Preserved
The original synchronous unlock retry logic in ReqShield.kt was intentionally preserved. Initial attempts to make it asynchronous were rolled back after analysis revealed it would compromise:
The blocking nature of unlock retry is by design and necessary for proper resource management.
⚡ Async Performance Validation
Comprehensive analysis across all async modules confirmed: