spring-architecture-referen.../docs/architecture/transaction-sequence.md
forge-bot f5923a3a7a
All checks were successful
ci / test (pull_request) Successful in 6s
결제 전환 목표 아키텍처 정의 (2/2) (iss-5a912ed79baf)
2026-07-12 05:19:41 +00:00

23 lines
No EOL
718 B
Markdown

```mermaid
sequenceDiagram
participant User
participant PaymentGateway
participant Database
User->>PaymentGateway: Initiate payment
PaymentGateway->>User: Payment status (success)
User->>Database: Save transaction
Database-->>User: Transaction saved
%% External failure scenario
User->>PaymentGateway: Initiate payment
PaymentGateway-->>User: Payment status (failure)
User->>Database: Log failure reason
%% Database failure scenario
User->>PaymentGateway: Initiate payment
PaymentGateway->>User: Payment status (success)
User->>Database: Save transaction
Database-->>User: Transaction failed (DB error)
Note right of User: Rollback transaction
```