Files
document-haness/docs/keycloak-session-store/final/assets/session-sharing-path/session-sharing-path.alt.md
T

21 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 세션 공유가 실제로 지나는 경로
## Alternative text
Keycloak replica 두 개에서 JGROUPS_PING으로는 멤버 발견이, OFFLINE_USER_SESSION으로는 세션 저장과 조회가 갈라지는 두 경로.
## Long description
keycloak-0과 keycloak-1은 JGROUPS_PING을 통해 서로를 발견하지만 sessions cache 엔트리를 서로 복제하지 않는다. 다른 노드가 만든 세션을 알아야 할 때는 PostgreSQL OFFLINE_USER_SESSION을 직접 읽는다. discovery와 session sharing은 같은 데이터베이스 안에서도 다른 책임이다.
## Elements and evidence
- **Keycloak replica 2개** (service): keycloak-0과 keycloak-1은 각자 sessions cache를 갖고 같은 PostgreSQL을 사용한다. Evidence: L75L81.
- **JGROUPS_PING** (datastore): 노드 discovery와 membership을 위한 테이블이다. 세션 엔트리 복제 경로가 아니다. Evidence: L75L75.
- **OFFLINE_USER_SESSION** (datastore): 다른 노드가 만든 세션을 직접 읽는 실제 공유 경로다. Evidence: L78L81.
## Relationships
- **Keycloak replica 2개 → JGROUPS_PING:** 멤버 발견. Evidence: L75L75.
- **Keycloak replica 2개 → OFFLINE_USER_SESSION:** 세션 저장 · 조회. Evidence: L78L81.