Skip to content
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

Merged
merged 13 commits into from
Sep 20, 2023

Conversation

seokhwan-an
Copy link
Collaborator

@seokhwan-an seokhwan-an commented Sep 16, 2023

📝작업 내용

기존의 데이터베이스에서 불러오던 노래 데이터를 하루에 한번 캐싱하는 것으로 변경하여 캐싱된 데이터를 불러오도록 수정했습니다.

  • 메인 페이지에서는 캐싱된 Top100 조회
  • 현재 노래 기준 스와이프, 이전 스와이프 노래 조회, 다음 스와이프 노래 조회 시에 캐싱된 데이터를 불러오도록 수정했습니다.

💬리뷰 참고사항

테스트는 추후 추가할 예정입니다.
기존에 구현되어 있던 SongServiceTest, ControllerTest 는 캐싱이 진행되도록 수정했습니다.
캐싱 데이터 갱신 시간은 security로 옮길 예정입니다.

#️⃣연관된 이슈

@seokhwan-an seokhwan-an added [ 🌙 BE ] 백엔드 크루들의 멋진 개발 이야기 하나둘셋 야! 🔨 Refactor 꾸준한 개선이 더 나은 애플리케이션을 만든다 labels Sep 16, 2023
@github-actions
Copy link

github-actions bot commented Sep 16, 2023

Unit Test Results

  76 files    76 suites   9s ⏱️
296 tests 296 ✔️ 0 💤 0
299 runs  299 ✔️ 0 💤 0

Results for commit 9d57ed2.

♻️ This comment has been updated with latest results.

@somsom13 somsom13 self-requested a review as a code owner September 20, 2023 01:30
Copy link
Collaborator

@Cyma-s Cyma-s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

리뷰 남긴 것 다 반영된 것 같아서 어프루브 하겠습니다 :)


//when
//when인
Copy link
Collaborator

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}")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

서브 모듈에 중요 정보 숨긴 것 좋네요 :)

@somsom13 somsom13 merged commit 2583129 into main Sep 20, 2023
@somsom13 somsom13 deleted the refactor/#417 branch September 20, 2023 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[ 🌙 BE ] 백엔드 크루들의 멋진 개발 이야기 하나둘셋 야! 🔨 Refactor 꾸준한 개선이 더 나은 애플리케이션을 만든다
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[REFACTOR] 성능 개선을 위한 노래 데이터를 캐싱한다.
3 participants