[Artist] Redis 도입 및 SpotifyService 리팩토링#301
Merged
Merged
Conversation
⭐ JaCoCo CoverageLine Coverage: 7.58% 📄 Coverage DetailsOverall Line Coverage: 7.57% (540 covered / 7130 lines) Package Summary (lowest first)
Lowest Covered Classes (Top 20)
Changed Classes (from this PR)
🔗 Full HTML report: See artifact jacoco-full-html on this run → https://github.com/prgrms-web-devcourse-final-project/WEB7_9_codecrete_BE/actions/runs/20766616843 |
Creamcheesepie
approved these changes
Jan 6, 2026
Collaborator
Creamcheesepie
left a comment
There was a problem hiding this comment.
코드 분량이 ㅎㄷㄷ.... 수고하셨습니다!
larama-C
approved these changes
Jan 7, 2026
Collaborator
larama-C
left a comment
There was a problem hiding this comment.
리팩토링으로 좀 더 깔끔해진 것 같습니다!
Creamcheesepie
approved these changes
Jan 7, 2026
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.
🔗 관련 이슈
🚀 PR 개요
아티스트 상세 조회 요청은 1회당 Spotify API를 최소 3회(아티스트 기본 정보, Top Tracks, 앨범 목록) 호출하는 구조로 되어 있습니다. 이로 인해 동일 아티스트를 반복해서 조회할 경우 Spotify API Rate Limit(429 오류)가 발생할 수 있습니다. 따라서 이를 개선하기 위해 Redis 에 Spotify API 호출 응답(artistName, profileImageUrl, popularity, topTracks, albums, totalAlbums) 을 저장하여 Spotify API 호출 결과를 일정 시간 동안 재사용하도록 변경하였습니다.
또한 SpotifyService 의 코드 라인 수가 너무 많아져서 하나의 Spotify 패키지 안에 여러 파일로 분류하는 리팩토링 작업을 진행하였습니다.
📌 변경 사항
🧪 테스트 방법
테스트 코드를 작성하였습니다.
📸 스크린샷 (선택)
리팩토링의 경우 refactor/#300 브랜치에서 작업하여 PR 을 올렸는데, 해당 브랜치를 pull 해서 받은 후 테스트 코드 작업을 진행하게 돼서 PR 이 좀 꼬였습니다... 그래서 refactor/#300 브랜치는 닫고 이 브랜치에서 리팩토링까지 올렸습니다.