DeliveryDispatch — 배차 시스템

고객·배송원 각자 STREAM · courier actor 배차

DeliveryDispatch — 배차 시스템 고객·배송원 각자 STREAM · courier actor 배차 고객 client · Architecture component 고객 client CustomerGateway · customer actor · Architecture component CustomerGateway customer actor Dispatch · HTTP 접수 · 배차 worker · Architecture component Dispatch HTTP 접수 · 배차 worker Tracking · 상태 기록 · Architecture component Tracking 상태 기록 CourierActorNode ×2 · courier actor · Architecture component CourierActorNode ×2 courier actor CourierSession · 연결 종단 · Architecture component CourierSession 연결 종단 배송원 client · Architecture component 배송원 client HTTP 배송 생성 STREAM 상태 상태 event 고객 알림 제안 · 재배정 session bind bound session push STREAM

외부 경계 = 웹 기술

  • • 고객: HTTP로 배송 생성(Dispatch), STREAM으로 상태 수신 — 고객 actor(CustomerGateway) ↔ 고객 client 양방향
  • • 배송원: CourierSession과 STREAM 연결 (양방향)

배차 · 알림

  • • Dispatch worker가 courier actor(CourierActorNode ×2)에 제안·재배정
  • • CourierSession이 courier actor에 session bind(점선), actor는 bound session으로 push
  • • 상태 event는 Dispatch→Tracking→CustomerGateway로 흘러 고객에게 알림