-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/#137 MultiQueue를 이용하여 Controller에서 오는 로그 요청의 부하 감소 #140
Conversation
Risk Level 3 - /home/runner/work/Team5-Guys/Team5-Guys/logbat/src/main/java/info/logbat/domain/log/queue/ReentrantLogQueue.java The commented-out @primary annotation may lead to confusion. If it's not needed, consider removing it to improve code clarity. Additionally, ensure that the locking mechanism is robust to avoid potential deadlocks. Risk Level 3 - /home/runner/work/Team5-Guys/Team5-Guys/logbat/src/main/java/info/logbat/domain/log/repository/AsyncLogRepository.java The deprecated methods should ideally be removed or replaced with a proper implementation. Leaving them in the codebase can lead to confusion and misuse. Consider implementing a proper asynchronous save mechanism instead. Risk Level 4 - /home/runner/work/Team5-Guys/Team5-Guys/logbat/src/main/java/info/logbat/domain/log/repository/AsyncMultiProcessor.java The constructor initializes multiple threads and queues, which can lead to resource exhaustion if not managed properly. Ensure that the number of queues and threads is configurable and monitored. Additionally, consider adding error handling in the produce method to manage potential failures. 🛠️🔍 Powered by Code Review GPT |
- 내부 로직 일원화 및 린팅을 적용했습니다. - MultiProcessor -> AsyncMultiProcessor 클래스 명 변경을 진행했습니다.
- EventConsume<T> 구현을 제거했습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻 조습니다. 찬찬히 리팩토링 하면 좋을거같아요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
multie level 큐 좋습니다!
같이 더 테스트 해봐요
* chore: 임시로 ReentrantLogQueue에서 Primary 제거 * feat: MultiProcessor 추가 - 임시로 여러 큐를 가지는 MultiProcessor를 추가함 * chore: default queue개수 조정 * feat: flatterQueue 싱글 스레드풀 추가 및 queue count default를 3 설정 * chore: default queue사이즈 설정 * refactor: AsyncMultiProcessor 리팩토링 - 내부 로직 일원화 및 린팅을 적용했습니다. - MultiProcessor -> AsyncMultiProcessor 클래스 명 변경을 진행했습니다. * chore: 불필요한 메서드 구현 제거 - EventConsume<T> 구현을 제거했습니다. * chore: 의존성 정리, 사용하지 않는 Component 제거 --------- Co-authored-by: KyungMin Lee <[email protected]>
🚀 작업 내용
📸 이슈 번호
👀 Focus Commits [Optional]
✍ 궁금한 점