spring-architecture-schema-.../docs/architecture/transaction-sequence.md
forge-bot bfd8645542
All checks were successful
ci / test (pull_request) Successful in 8s
결제 전환 목표 아키텍처 정의 (SPRING-ARC-SCHEMA-1783830385)
2026-07-12 04:28:00 +00:00

959 B

sequenceDiagram
    participant User
    participant Controller
    participant Service
    participant Repository
    participant ExternalGateway

    User->>Controller: 결제 요청
    Controller->>Service: 결제 처리 요청
    Service->>Repository: 결제 정보 저장
    alt 정상 흐름
        Repository-->>Service: 저장 성공
        Service->>ExternalGateway: 결제 요청
        ExternalGateway-->>Service: 결제 성공
        Service-->>Controller: 성공 응답
        Controller-->>User: 결제 완료
    else 외부 실패
        Repository-->>Service: 저장 성공
        Service->>ExternalGateway: 결제 요청
        ExternalGateway-->>Service: 결제 실패
        Service-->>Controller: 실패 응답
        Controller-->>User: 결제 실패
    else DB 실패
        Repository-->>Service: 저장 실패
        Service-->>Controller: 실패 응답
        Controller-->>User: 결제 실패
    end