ShoppingMall — 무손실 event sourcing

OrderId owner Spot · 조율 계층 없이 순차 코드

ShoppingMall — 무손실 event sourcing OrderId owner Spot · 조율 계층 없이 순차 코드 web client · Architecture component web client CommerceApi · HTTP 종단 · 검증 · 조회 · Architecture component CommerceApi HTTP 종단 · 검증 · 조회 OrderWorkflowSpot · 주문 하나당 하나 · OrderWorkflow node ×2 OrderWorkflowSpot 주문 하나당 하나 이벤트 스트림 · Architecture component 이벤트 스트림 조회 모델 · Architecture component 조회 모델 주문 시작 · 조회 OrderId를 주소로 Spot 메시지 append · replay 갱신 조회 OrderWorkflow node ×2

owner Spot 처리

  • • web client → CommerceApi가 HTTP 종단·검증·조회
  • • CommerceApi가 OrderId를 주소로 Spot 메시지 (emphasis) — 주문 하나당 OrderWorkflowSpot 하나
  • • OrderWorkflow node는 ×2로 띄우고, 그 위에 주문별 Spot이 산다

event sourcing (CQRS)

  • • Spot이 이벤트 스트림에 append·replay, 조회 모델 갱신
  • • CommerceApi는 조회 모델을 직접 조회 — 조율 계층 없이 순차 코드로 재시도·중단 안전