review-followup Wave 3 라운드 3(P22): Redis runtime·SDK 분리, 좁은 semantic 포트, startup rule, lease fencing 계약
- pub/sub 표면 삭제(G-6b·G-4i — 소비자 0, capability 규칙 3): SDK pub/sub·runtime gateway·PUBSUB lane·env 키 2개 - runtime을 `…cache.redis.runtime`으로(split package 해소), runtime은 소비자가 쓰는 8개 명령(`SemanticRedisCommands`)만, 118개 메서드 gateway는 redis-sdk가 확장. SDK의 blocking·transaction·admin lane은 코드로 조립(env 키 4개 삭제) - EVALSHA+NOSCRIPT 재로드 헬퍼 하나(메시지에만 NOSCRIPT가 온 경우도 재로드 — `LeaseScriptsTest` FAIL→PASS) - startup rule 목록 + runner 하나(환경 검사 8개, exit code·문구 유지), Redis secret 요구는 모듈이 기여, ratelimit 정책을 cache-redis 밖으로, lease fencing 계약 테스트(fake·어댑터·실제 Redis) - 통합: redis-sdk 테스트 2개가 옛 split package 경로를 보던 것 수정(ORCH-new-4) 검증: ./gradlew check architectureCheck verifyDependencyLocks :app-bootstrap:verifyEnvKeys configContractCheck :app-bootstrap:integrationTest :sample-portfolio:integrationTest :sample-portfolio:systemTest --continue 통과(682 task), Redis 7.4 standalone topology lane: runtime 7 · sdk 14 · cache-redis 19, 실패·skip 0 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
486d85a603
commit
4f4bd1fd34
@@ -20,9 +20,10 @@ persistence·outbound)이 프레임워크 충돌 없이 이 타입들을 공유
|
||||
경계다. Business quota나 entitlement policy를 담는 application use case가 아니며, 이미
|
||||
pseudonymized된 subject digest와 bounded policy ID/cost/deadline만 받는다.
|
||||
|
||||
`RateLimitPolicy`는 fixed window, sliding-window counter, token bucket 중 하나의 exact parameter
|
||||
subtype을 고정하고 Lua의 `2^53-1` 안전 정수, 1일 window/refill/cleanup, 1시간 clock regression,
|
||||
`FAIL_CLOSED`만 허용한다. 결과는 evaluated, known pre-send unavailable, post-dispatch
|
||||
`RateParameters`는 fixed window, sliding-window counter, token bucket의 exact parameter와 Lua의
|
||||
`2^53-1` 안전 정수, 1일 window/refill 한도를 고정한다. 정책 자체(`RateLimitPolicy`, 알고리즘·
|
||||
실패 정책·evaluation dedup)는 그것을 쓰는 유일한 곳인 `adapter:outbound:cache-redis`의 설정이라
|
||||
그 leaf에 있다. 결과는 evaluated, known pre-send unavailable, post-dispatch
|
||||
indeterminate, schema/program/reply incompatible로 분리하므로 adapter가 장애를 allow나 평범한
|
||||
deny로 숨길 수 없다. 이 패키지는 Java 표준 라이브러리만 사용하며 Redis key, command, Lua,
|
||||
Spring/Lettuce 타입을 노출하지 않는다.
|
||||
|
||||
Reference in New Issue
Block a user