refactor: 배치 처리 최대 허용 시간 정의 및 Busy Counter 상태 유지 주기 동기화#224
Merged
Ji-minhyeok merged 5 commits intoApr 25, 2026
Conversation
added 5 commits
April 23, 2026 17:04
…uple-participant-count-update # Conflicts: # src/main/java/com/threestar/trainus/domain/lesson/issue/LessonStockReconciliationScheduler.java
…al-project/WEB5_7_3star_BE into refactor/#221/decouple-participant-count-update
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.
🚀 작업 개요
트래픽 하에 배치 처리 시간과 Redis 상태 유지 시간(TTL) 사이의 불일치로 발생하는 정합성 결함을 해결했습니다.
시스템이 보장하는 최대 배치 처리 가능 시간을 10분으로 정의하고 모든 상태 관리 로직을 이 주기에 맞춰 재설계했습니다.
🛠️ 작업 내용
배치 처리 및 상태 유지 주기 동기화
(배치 작업 시작 - 끝)
Busy Counter의 TTL을 10분으로 설정하여 처리 중 상태가 보정 로직에 의해 오판되는 상황을 원천 차단했습니다.정합성 보호 경계 설정
(배치 작업 끝 직후 - DB 반영)
Busy Conter가 0이 된 시점부터 DB에 실제 반영되기까지의 미세한 시차를 수용하기 위해 최종 활동(last_active) 기준 5초의 조건을 추가했습니다.명시적 장애 규정 및 자가 회복
✅ PR 유형
✅ Check List
🔗 관련 이슈
💬 기타 참고 사항