-
Notifications
You must be signed in to change notification settings - Fork 2
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
Refactor/#417 성능 개선을 위한 노래 데이터를 캐싱한다. #418
Conversation
세부사항 - cachedSong -> InMemorySongs으로 이름 변경 - util 클래스 -> repository 빈으로 수정
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.
리뷰 남긴 것 다 반영된 것 같아서 어프루브 하겠습니다 :)
|
||
//when | ||
//when인 |
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.
//when 으로 바꿔주세요 ^^!
recreateCachedSong(); | ||
} | ||
|
||
@Scheduled(cron = "${schedules.in-memory-song.cron}") |
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.
서브 모듈에 중요 정보 숨긴 것 좋네요 :)
📝작업 내용
기존의 데이터베이스에서 불러오던 노래 데이터를 하루에 한번 캐싱하는 것으로 변경하여 캐싱된 데이터를 불러오도록 수정했습니다.
💬리뷰 참고사항
테스트는 추후 추가할 예정입니다.
기존에 구현되어 있던 SongServiceTest, ControllerTest 는 캐싱이 진행되도록 수정했습니다.
캐싱 데이터 갱신 시간은 security로 옮길 예정입니다.
#️⃣연관된 이슈