[추천서버] 추천 통계 정보 배치 구현 #53
Open
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.
1. 연관 이슈
2. 작업 내용
추천 서버 DB에 저장되어 있는 추천 피처 데이터를 직군별, 연차별 인기 조회 게시글 통계를 캐싱하도록 배치 모듈을 구현했습니다.
캐싱된 통계 정보는 추후 피드 추천 API 구현 시 사용될 예정입니다.
3. 이후 작업
4. 고려해본 것들 & 고민되는 점
현재 구현한 방식은 스프링 배치의 청크 단위 기반으로 처리하도록 구현을 해봤습니다. 이때 청크의 사이즈를 어떤 기준으로 설정해야하는지 감이 잡히지 않았었는데요. 청크 사이크도 별도의 성능테스트를 통해서 적절한 값을 찾아야할 것 같은데, 이럴때는 어떤 지표들을 봐야할까요..?