29 lines
732 B
Plaintext
29 lines
732 B
Plaintext
# 승인된 결제는 주문 상태 갱신 후 이벤트로 확산된다
|
|
# Question: 결제 요청은 어디를 거쳐 저장되고 승인 후 어떤 이벤트를 발행하는가?
|
|
direction: right
|
|
n0: "클라이언트" {
|
|
shape: person
|
|
}
|
|
n1: "인증 게이트웨이" {
|
|
shape: rectangle
|
|
}
|
|
n2: "체크아웃 API" {
|
|
shape: rectangle
|
|
}
|
|
n3: "PostgreSQL 주문 저장소" {
|
|
shape: sql_table
|
|
}
|
|
n4: "결제 제공자 API" {
|
|
shape: rectangle
|
|
}
|
|
n5: "이벤트 버스" {
|
|
shape: queue
|
|
}
|
|
n0 -> n1: "HTTPS 결제 요청"
|
|
n1 -> n2: "검증된 요청 전달"
|
|
n2 -> n3: "PENDING 주문 기록"
|
|
n2 -> n4: "승인 요청"
|
|
n4 -> n2: "승인 응답"
|
|
n2 -> n3: "PAID 상태 갱신"
|
|
n2 -> n5: "payment.approved 발행" { style.stroke-dash: 4 }
|