Conversation
refactor(family):가족공유 api 조회 redis+db로 재구성
[534] Family , Data API 내 Redis 적재 데이터 반영 로직 추가
[Fix] cache/streams Redis Sentinel 설정 반영
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (12)
📝 WalkthroughWalkthroughThis pull request introduces Redis-backed traffic balance caching for data and family services. A new Changes
Sequence DiagramsequenceDiagram
participant Client
participant FamilyService
participant TrafficRemainingBalanceQueryService
participant DataMapper
participant TrafficQuotaCacheService
participant Redis
participant Database
Client->>FamilyService: getFamilyMembers()
FamilyService->>DataMapper: Query family members + pool data
DataMapper->>Database: SELECT family members with pool columns
Database-->>DataMapper: Return DB pool data
DataMapper-->>FamilyService: FamilyMembersResDto list
FamilyService->>TrafficRemainingBalanceQueryService: resolveSharedActualRemaining(familyId, dbRemaining)
TrafficRemainingBalanceQueryService->>TrafficQuotaCacheService: readAmountOrDefault(redisKey)
TrafficQuotaCacheService->>Redis: GET cached balance
Redis-->>TrafficQuotaCacheService: Return cached balance
TrafficQuotaCacheService-->>TrafficRemainingBalanceQueryService: Redis balance value
TrafficRemainingBalanceQueryService->>TrafficRemainingBalanceQueryService: safeAdd(dbRemaining, redisBalance)
TrafficRemainingBalanceQueryService-->>FamilyService: Actual remaining balance
FamilyService->>FamilyService: enrichFamilyMember(actualRemaining)
FamilyService-->>Client: Return enriched FamilyMembersResDto
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip You can customize the tone of the review comments and chat replies.Configure the |
개요
관련 BackLog
Resolves: (Backlog Number, ...)
PR 유형
PR Checklist
Summary by CodeRabbit
Release Notes
New Features
Infrastructure