MSA 서비스 호출 흐름

MSA 서비스 호출 흐름 A sequence diagram generated by Archify. POST /orders W3C context 전달 주문 + outbox transaction 201 Created 201 Created POST /payments W3C context 전달 결제 + outbox transaction 결제 결과 응답 결제 결과 응답 각 queue 소비·dedup·합성 결과 응답 경로와 분리된 비동기 처리 retry order.created retry payment.completed 성공 응답 → DB mark Order transaction / HTTP response Payment transaction / HTTP response Asynchronous outbox / independent consumers Client · Sequence participant Client API Gateway · Sequence participant API Gateway Order · Sequence participant Order Payment · Sequence participant Payment Aurora · Sequence participant Aurora SNS →2SQS · Sequence participant SNS →2SQS Consumers · Sequence participant Consumers Legend 핵심 호출 응답 비동기 · 선택 일반 호출

중복과 인과관계

  • • publish와 HTTP 응답의 상대 순서는 달라질 수 있음
  • • 트랜잭션 commit 후 발행; 중복은 consumer가 처리
  • • W3C context가 비동기 경로를 연결