Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Paygate HA / failover #7

Open
3 of 9 tasks
kail-is opened this issue Oct 19, 2024 · 0 comments
Open
3 of 9 tasks

Paygate HA / failover #7

kail-is opened this issue Oct 19, 2024 · 0 comments
Assignees

Comments

@kail-is
Copy link
Contributor

kail-is commented Oct 19, 2024

image

HA

  • API 요청 시 멀티스레딩
  • 유입 부하 제어 Rate Limit

Failover

  • 5초 내 동일 IP 요청 시도 시 폴백
  • 요청 오류 비율 30% 이상일 경우 서킷 발동: 결제 시스템인 만큼 보수적 제어
  • 벌크헤드 제어 (타 시스템 영향도 최소화

데이터 누락 제어

  • 카드사 결제 요청 시 재요청을 위한 데이터 적재 -> RDB (비동기 큐의 신뢰도 우려한 저장소 선택)
  • isSaved true일 경우 해당 키 데이터 삭제
  • isPaid true일 경우 결제 완료 반환
  • isPaid: true, retryCount 3회 이하, isSaved false 일 경우 배치 돌며 재적재 시도
@kail-is kail-is self-assigned this Oct 19, 2024
@kail-is kail-is changed the title Paygate HA Paygate HA / failover Oct 22, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant