From 71e25467e37c328e21403f0e294969c9301e969a Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sun, 12 Jul 2026 04:41:19 +0000 Subject: [PATCH] =?UTF-8?q?=EA=B2=B0=EC=A0=9C=20=EC=A0=84=ED=99=98=20?= =?UTF-8?q?=EB=AA=A9=ED=91=9C=20=EC=95=84=ED=82=A4=ED=85=8D=EC=B2=98=20?= =?UTF-8?q?=EC=A0=95=EC=9D=98=20(2/2)=20(iss-155aa95ea6df)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/architecture/transaction-sequence.md | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 docs/architecture/transaction-sequence.md diff --git a/docs/architecture/transaction-sequence.md b/docs/architecture/transaction-sequence.md new file mode 100644 index 0000000..5d7e5c3 --- /dev/null +++ b/docs/architecture/transaction-sequence.md @@ -0,0 +1,25 @@ +```mermaid +sequenceDiagram + participant User + participant PaymentGateway + participant Bank + + %% Normal flow + User ->> PaymentGateway: Request Payment + PaymentGateway ->> Bank: Process Payment + Bank -->> PaymentGateway: Payment Approved + PaymentGateway -->> User: Payment Confirmation + + %% External failure branch + User ->> PaymentGateway: Request Payment + PaymentGateway ->> Bank: Process Payment + Bank -->> PaymentGateway: Payment Declined + PaymentGateway -->> User: Payment Declined Message + + %% DB failure branch + User ->> PaymentGateway: Request Payment + PaymentGateway ->> Bank: Process Payment + Bank -->> PaymentGateway: DB Error + PaymentGateway -->> User: Payment Failed Due to Error + Note over PaymentGateway: Rollback transaction if needed +``` \ No newline at end of file