Skip to content

[자영] 주식 관련 버퍼 수정 #287

Description

@cho-ja-young

✏️ 기능 설명

주식 리스트 조회 관련 수정

📌 할 일

✅ 추가 org.scoula.finance.util.KiwoomCacheService

stkinfo 호출 결과를 Redis 캐시(10초)
429/빈 결과는 네거티브 캐시(5초)
분산 락(3초) 으로 동시성 중복호출 제거
초당 호출 상한(전역) 레이트 리미터(Redis INCR) 내장

✅ 수정 RedisKeyPrefix

주식 실시간 정보 캐시/락/레이트리밋 키 프리픽스 및 TTL 추가

✅ 수정 StockServiceImpl

모든 KiwoomApiUtils.sendPostRequest() → KiwoomCacheService 경유
가격 파싱 가드 + 가격 없으면 즉시 제외(오류 최소화 정책)
코드 6자리 정규화(좌측 0 패딩)

👊🏻 참고 자료

참고 자료가 있다면 적어주세요.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions