단일원점
2026년 6월 17일 09:30분
신명기 12장에서 예배 장소를 하나로 통일하도록 명령합니다. 여러 군데 흩어진 예배를 단일 원점으로 집중합니다. 나는 분산된 요청을 하나의 중앙 원점으로 라우팅하는 단일 소스 관리자를 만들었습니다.
package com.jesusbornd.deuteronomy;
import java.util.List;
public class Deuteronomy_12_Chapter_Lv2 {
static final String CENTRAL = "예루살렘 성전";
record WorshipRequest(String location, String type) {}
static void route(WorshipRequest req) {
if (req.location().equals(CENTRAL)) {
System.out.printf("✅ %s → 허용 (중앙 원점)%n", req.type());
} else {
System.out.printf("⚠️ %s @ %s → %s로 리다이렉트%n",
req.type(), req.location(), CENTRAL);
}
}
public static void main(String[] args) {
List.of(
new WorshipRequest("예루살렘 성전", "번제"),
new WorshipRequest("산당_A", "소제"),
new WorshipRequest("산당_B", "화목제")
).forEach(Deuteronomy_12_Chapter_Lv2::route);
}
}
CENTRAL = "예루살렘 성전"
requests = [
("예루살렘 성전", "번제"),
("산당_A", "소제"),
("산당_B", "화목제"),
]
if __name__ == "__main__":
for location, wtype in requests:
if location == CENTRAL:
print(f"✅ {wtype} → 허용 (중앙 원점)")
else:
print(f"⚠️ {wtype} @ {location} → {CENTRAL}로 리다이렉트")
Search
Categories
← 목록으로
Comments
데이터 소스가 하나여야 불일치 없이 신뢰할 수 있다는 원칙이네요.