Files
document-haness/docs/clean-architecture-backend-template/final/evidence/raw/a12-f002-jackson-databind.txt
T
DongHyeonkaandClaude Opus 5 b2963105a8 docs(keycloak-session-store): import the session-storage lab as a new project
The keycloak project ended with four open questions that design could not
settle. A two-VM lab was built to answer them by measurement, and this is
that material: 26 experiments, 125 raw command outputs, 22 browser captures.

Follows the import procedure in README.md.

  source/     the originating repository verbatim — 78 documents, 28 SVGs,
              8 manifests, plus .source-revision recording the commit
  final/      the SSOT
    document.md   729 lines written from the 29 experiment documents, not
                  concatenated: what was predicted, what was measured, and
                  where the measurement itself was wrong
    evidence/raw    125 outputs, flattened to <experiment>__<file> because
                    the originals collided (01-baseline.txt appeared three
                    times) and the audit only globs the top level
    evidence/meta   one per raw file; command and exitCode are null and the
                    README says why rather than inventing them
    evidence/browser  22 captures
    assets/       three diagrams through techviz
    .techviz/     their VizSpecs

A separate project rather than an addition to keycloak: the B-layer answers
that project's four questions, but the A, C and D layers are about cluster
failure, SSO and operations, and one document.md should hold one subject.
The four question records there can point here through 관계.

Recorded rather than papered over: only three of the 28 diagrams were
remade. The repository forbids hand-drawn SVG and forbids titles inside the
canvas; all 28 originals carry both, so converting them is redrawing, not
reformatting. They stay in source/ and the gap is written into the document.

verify-pipeline.py passes. audit-records.py reports no issues.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-04 22:51:59 +09:00

45 lines
2.6 KiB
Plaintext

# 같은 주장을 하는 두 자리
## OutboxEnvelopeJson — 손수 짠 JSON
이 모듈은 `jackson-databind` 를 classpath 에 두지 않아(스켈레톤을 가볍게 유지) outbox envelope
직렬화는 의존성 없는 손수 짠 JSON 이다.
/**
* Hand-rolled, dependency-free JSON serialiser for the outbox envelope (no Jackson — the module
* deliberately keeps {@code jackson-databind} off its classpath).
# 그 라이브러리를 끌어오는 선언
8: implementation 'org.springframework.boot:spring-boot-starter-json'
9: implementation('com.networknt:json-schema-validator:3.0.2') {
51: 'com.networknt:json-schema-validator:3.0.2',
# 같은 build 파일의 검증 태스크가 요구하는 것
'com.networknt:json-schema-validator:3.0.2',
'tools.jackson.core:jackson-core:3.0.2',
'tools.jackson.core:jackson-databind:3.0.2'
# 리프 main 에서 그 라이브러리를 쓰는 곳
realtime/RealtimeFanoutEnvelopeJson.java:5:import tools.jackson.databind.ObjectMapper;
realtime/RealtimeFanoutEnvelopeJson.java:6:import tools.jackson.databind.json.JsonMapper;
realtime/RealtimeFanoutEnvelopeJson.java:7:import tools.jackson.databind.node.ObjectNode;
realtime/RealtimeFanoutEnvelopeJson.java:71: private static String text(tools.jackson.databind.JsonNode root, String field) {
envelope/LocalJsonSchemaRegistry.java:33:import tools.jackson.databind.DeserializationFeature;
envelope/LocalJsonSchemaRegistry.java:34:import tools.jackson.databind.JsonNode;
envelope/LocalJsonSchemaRegistry.java:35:import tools.jackson.databind.ObjectMapper;
envelope/LocalJsonSchemaRegistry.java:36:import tools.jackson.databind.json.JsonMapper;
# 그중 봉투를 만드는 쪽
24: private static final String VERSION = "1";
25: private static final ObjectMapper MAPPER = JsonMapper.builder().build();
30: public static String toJson(DurableFanoutRecord record) {
31: Objects.requireNonNull(record, "record must not be null");
32: ObjectNode root = MAPPER.createObjectNode();
# 그 봉투와 그것을 부르는 어댑터를 조립하는 곳
RealtimeFanoutEnvelopeJson 을 자기 파일 밖에서 부르는 곳 : 1
MessagingDurableFanoutAdapter 를 자기 파일 밖에서 부르는 곳 : 0
# 잠금 파일의 관련 좌표
8:com.fasterxml.jackson.core:jackson-annotations:2.21=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
150:tools.jackson.core:jackson-databind:3.1.5=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath