[improve/#147] Resilience4j 설정 최적화 및 Rate Limiter 분리 #149
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.
❤️ 기능 설명
외부 LLM API 호출의 안정성과 처리 성능을 대폭 개선하기 위해 Resilience4j 설정을 최적화하고, 각 API의 실제 제한에 맞춰 Rate Limiter를 분리했습니다.
주요 변경사항
1. Circuit Breaker 예외 처리 개선 (f138de3)
파일:
src/main/java/com/techfork/global/llm/exception/*,application.ymlLlmException,LlmNetworkException,LlmRateLimitException)LlmException만 기록, 네트워크/Rate Limit 예외는 무시Before:
After:
2. Rate Limiter 분리 (5c0bd38)
파일: src/main/java/com/techfork/global/llm/impl/*, application.yml
파일: src/main/java/com/techfork/domain/source/config/RssCrawlingJobConfig.java:172
성능 개선 효과
100개 게시글 처리 시나리오:
안정성 향상:
연결된 issue
연결된 issue를 자동으로 닫기 위해 아래 {이슈넘버}를 입력해주세요.
close #147
✅ 체크리스트