fix: 채팅 도배 제한 초당 기준 4/sec로 조정#144
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
📝 WalkthroughWalkthrough채팅 STOMP 메시지의 초당 rate limit 토큰 버킷 용량을 5에서 4로 하향 조정한다. Changes채팅 rate limit 초당 한도 조정
예상 코드 리뷰 노력🎯 1 (Trivial) | ⏱️ ~5 minutes Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
|



변경 내용
app.rate-limit.policies.chat.limits[0].capacity를5 → 4로 조정 (/chat,/placeSTOMP 메시지 사용자별 초당 제한).docs/ai/features.md의 채팅 도배 방지 정책 설명을4/sec + 60/min으로 갱신.docs/ai/erd.mdRedis 키 표의rate-limit:stomp:chat:user:{userId}설명을4/sec + 60/min/user로 갱신.MessageRateLimiterTest,HttpRateLimitPolicyResolverTest,Bucket4jRateLimitServiceTest)의 기대 bandwidth를 4로 정합.RateLimitPropertiesTest추가:application.yaml을 실제로 바인딩해서 기본 채팅 정책이4/sec + 60/min인지 회귀 검증.변경 이유
60/min)는 유지하여 누적 도배 차단 효과는 변함 없도록 한다.테스트
./gradlew test --tests "*RateLimitPropertiesTest" --tests "*MessageRateLimiterTest" --tests "*HttpRateLimitPolicyResolverTest" --tests "*Bucket4jRateLimitServiceTest"(로컬)/review-code-against-docs스킬로 검증 — 이슈 없음체크리스트
features.md,erd.md)하네스 변경 체크리스트
Summary by CodeRabbit
릴리스 노트
Documentation
Tests
Chores