Skip to content

[DABOM-459] family_quota 변경, 레디스 suffix 적용 #53

Description

@dabom-devops-bot

🎟️ 지라 티켓 (Ticket Number)

DABOM-459

🌳 브랜치명 (Branch)

fix/DABOM-459

📝 상세 내용 (Description)

키를 월 suffix 기반으로 맞춘다.

usage sync/warmup/Lua/이벤트 경로 전체가 동일한 월 suffix 키를 사용하도록 정리한다.

공통 전제:

  • 가족 월 집계는 eventMonth 기준 family_quota에 upsert한다.

  • Family Redis 키는 family:{fid}:info:{yyyyMM}, family:{fid}:remaining:{yyyyMM}, family:{fid}:alert:THRESHOLD:{threshold}:{yyyyMM} 형식으로 통일한다.

  • family.current_month, family.used_bytes write는 제거 대상이다.

✅ TODO

  • FamilyUsageWriterFamilyRepository.updateUsedBytesByEventMonth 대체

  • eventMonth 기준 family_quota upsert 구현

  • RedisKeyGeneratorinfo, remaining, alert 키에 월 suffix 추가

  • UsageSyncServiceImpl가 suffix 포함 Family Redis 키를 사용하도록 수정

  • UsageRedisWarmupHelperfamily_quota 기준으로 info/remaining 키를 워밍업하도록 수정

  • UsageLuaExecutorusage_update.lua가 suffix 포함 키를 사용하도록 수정

  • alert 최종 키를 family:{fid}:alert:THRESHOLD:{threshold}:{yyyyMM}로 고정

  • 새 달 첫 이벤트, 같은 달 누적, 중복 이벤트, 월경계 alert 재발행 케이스 테스트 추가

  • family.current_month/family.used_bytes write 제거 후 관련 테스트/로그 문구 정리

📌 기타 사항

  • Type: 하위 작업
  • Task: DABOM-458 family_quota 변경, 레디스 suffix 적용
  • Epic: processor-usage

이 이슈는 Jira Automation을 통해 자동 생성되었습니다.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions