배치서비스개발, redis설정

- Analytics 5분 단위 배치 스케줄러 추가
- 초기 데이터 로딩 기능 구현 (서버 시작 30초 후)
- Redis 설정 업데이트 (외부 Redis 서버 연결)
- Redis 읽기 전용 오류 처리 추가
- IntelliJ 실행 프로파일 생성
- @EnableScheduling 활성화

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Hyowon Yang
2025-10-24 13:39:10 +09:00
parent fb60c6f8a6
commit b0b0ba3263
7 changed files with 388 additions and 3 deletions
@@ -29,9 +29,9 @@ spring:
# Redis
data:
redis:
host: ${REDIS_HOST:localhost}
host: ${REDIS_HOST:20.214.210.71}
port: ${REDIS_PORT:6379}
password: ${REDIS_PASSWORD:}
password: ${REDIS_PASSWORD:Hi5Jessica!}
timeout: 2000ms
lettuce:
pool:
@@ -136,3 +136,10 @@ resilience4j:
failure-rate-threshold: 50
wait-duration-in-open-state: 30s
sliding-window-size: 10
# Batch Scheduler
batch:
analytics:
refresh-interval: ${BATCH_REFRESH_INTERVAL:300000} # 5분 (밀리초)
initial-delay: ${BATCH_INITIAL_DELAY:30000} # 30초 (밀리초)
enabled: ${BATCH_ENABLED:true} # 배치 활성화 여부