Skip to content

[DEV-190] Redis 기반 단어 별 조회수 구현 로직 개발#56

Open
RookieAND wants to merge 10 commits into
developfrom
feature/DEV-190
Open

[DEV-190] Redis 기반 단어 별 조회수 구현 로직 개발#56
RookieAND wants to merge 10 commits into
developfrom
feature/DEV-190

Conversation

@RookieAND

@RookieAND RookieAND commented Mar 9, 2025

Copy link
Copy Markdown
Contributor

Task Summary ✨

Redis 기반 단어 별 조회수 구현 로직 개발

Description 📑

  • Redis Sorted Set 자료구조에 단어 별 유저 조회 내역을 저장하고, 요청 시간 순으로 이를 정렬하도록 설정했습니다.
  • 3시간 단위로 각 단어 별 조회 로그 수량을 계산하여 WordView Table 에 단어 별로 산출된 조회수 정보를 추가합니다.
  • 어뷰징 방지를 위해 유저 별로 5분 이내에 동일 단어에 대한 요청을 보낸 경우 조회수가 올라가지 않도록 설정합니다.
  • 비로그인의 경우 각 요청을 식별하기 위해 별도의 UUID 를 생성하고 이를 viewerId Cookie 에 추가하였습니다.

More Information 🛎

  • Redis Client 의 Return Type 을 추가하여 RedisClient 타입을 다른 Service 로직에서 원활하게 쓰도록 수정했습니다.
  • UseRoleGuard 에서 UserRole 이 GUEST 인 경우 가상의 user 데이터를 Request 에 추가하도록 로직을 수정했습니다.

Self Checklist ✅

  • PR 제목 컨벤션에 맞는지 확인
  • PR Label 설정

@RookieAND RookieAND self-assigned this Mar 9, 2025
@RookieAND RookieAND added the ✨ Feature 기능 개발 label Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ Feature 기능 개발

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant