-
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: 보호 동물 목록 조회 캐시를 리팩토링한다. #458
Conversation
Test Results287 files ±0 287 suites ±0 27s ⏱️ ±0s Results for commit b46fa60. ± Comparison against base commit 0ac55c2. This pull request removes 13 and adds 15 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
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.
zset으로 동시성 해결 👍🏻👍🏻👍🏻
src/test/java/com/clova/anifriends/domain/animal/repository/AnimalRedisRepositoryTest.java
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
⛏ 작업 사항
📝 작업 요약
캐시 크기가 최대 크기를 넘어가면 trim 해줄 때 발생하는 동시성 이슈
(동시에 100개 저장 시 데이터가 단 한개도 캐싱되지 않음)
보호 동물 총 개수 캐시 갱신 관련 동시성 문제
Cache Miss 일 경우의 로직 개선
보호 동물 갱신 시 캐시 대상이 아닌 데이터도 캐시에 추가되는 문제
💡 관련 이슈