feat: 이벤트 시간 12시~2시로 변경 및 rate Limit 도입#119
Merged
wlgns12370 merged 1 commit intomainfrom Mar 17, 2026
Merged
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
📝 WalkthroughWalkthroughRate limiting 기능을 구현하기 위해 Redis 기반의 속도 제한 메커니즘을 도입하고, 설정을 LikeProperties로 통합하며, 새로운 필터와 컴포넌트를 추가합니다. Changes
Sequence Diagram(s)sequenceDiagram
participant Client as 클라이언트
participant Filter as LikeRateLimitFilter
participant Limiter as LikeRateLimiter
participant Redis as Redis
participant Service as BoothLikeService
Client->>Filter: POST /booths/{id}/likes
Filter->>Filter: 클라이언트 IP & 기기ID 추출
Filter->>Limiter: isAllowed(clientIp, deviceId)
Limiter->>Redis: 현재 count 확인<br/>(like:rate:IP:deviceId)
Redis-->>Limiter: count 값 반환
alt count >= maxLikes
Limiter-->>Filter: false (제한됨)
Filter->>Filter: 429 응답 생성
Filter-->>Client: HTTP 429<br/>TOO_MANY_REQUESTS
else count < maxLikes
Limiter->>Redis: count 증가
alt 첫 증가인 경우
Limiter->>Redis: TTL 설정 (10분)
end
Limiter-->>Filter: true (허용)
Filter->>Service: 필터 체인 계속
Service-->>Client: 좋아요 처리 완료
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
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 CodeRabbit can enforce grammar and style rules using `languagetool`.Configure the |
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.
✨ 구현한 기능
Summary by CodeRabbit
릴리스 노트