Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat: 결제 실패 시 복구 로직을 수행한다. #114

Merged
merged 21 commits into from
Aug 29, 2023
Merged

Conversation

bkRyusim
Copy link
Contributor

Description

#108 에 명시된 대로 복구 로직을 수행합니다.

기존 @async로 비동기 메서드를 호출하던 방식에서, 반환받은 Mono stream을 subscribe하여 ElasticBound 스레드에서 DB 업데이트를 하는 것으로 방식을 변경하였습니다.

Payment와 Order가 억지로 분리된 듯한 느낌을 계속 받습니다. Payment를 Order의 Value Object로 관리하는 것에 대해 고민해볼 필요가 있을 듯 합니다.

Changes

커밋 로그 확인 요망

Test Checklist

  • 주문 인수 테스트에 결제 성공 시, 결제 실패 시 시나리오에 대한 테스트를 추가했습니다.

Copy link
Contributor

@impati impati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다.

Copy link
Contributor

@chanwooDev chanwooDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

굿굿 동기적 접근

Copy link
Contributor

@chanwooDev chanwooDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

모두 확인 완료입니다!
고생하셨어요!

@chanwooDev chanwooDev merged commit bf4e7f7 into dev Aug 29, 2023
1 check passed
@chanwooDev chanwooDev deleted the feat/108 branch August 29, 2023 04:08
@chanwooDev chanwooDev added the enhancement New feature or request label Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants