[게스트 모집] 경기 상태 변경 배치에서 Redis Expire Event로 변경 작업 #278
Merged
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에 아래와 같은 방식으로 키 저장
모집 중
->모집 마감
)로 변경모집 중
->모집 마감
)로 변경저장했던 키의 시간이 만료되면 Spring으로 키 만료 이벤트를 발생시킴
키 만료 이벤트를 확인하여 게임 상태를 변경하는 Key가 맞을 경우 DB에서 해당 레코드를 불러와 수정
새로운 방식의 장점
새로운 방식의 단점
✅ 작업 목록
🙏 리뷰어에게
기타
Prefix
P1
: 꼭 반영해주세요 (Request changes)P2
: 적극적으로 고려해주세요 (Request changes)P3
: 웬만하면 반영해 주세요 (Comment)P4
: 반영해도 좋고 넘어가도 좋습니다 (Approve)P5
: 그냥 사소한 의견입니다 (Approve)