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

apply distributed transactions for saga patterns to product and order domain #27

Open
Hyung1Jung opened this issue Jan 26, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Hyung1Jung
Copy link
Owner

Hyung1Jung commented Jan 26, 2022

  • 여러 마이크로서비스들이 독립적으로 존재하기 때문에 각각의 마이크로서비스에서 발생하는 db access 작업을 하나의 트랜잭션으로 묶기 위해서는 추가적인 고민
  • 따라서, 마이크로서비스들끼리 이벤트를 주고받아 특정 마이크로서비스에서의 작업이 실패하면 이전까지 작업이 완료된 마이크로서비스들에게 보상 (complementary) 이베트를 소싱함으로써 분산 환경에서 atomicity를 보장하는 패턴인 사가 패턴 적용
@Hyung1Jung Hyung1Jung added the enhancement New feature or request label Jan 26, 2022
@Hyung1Jung Hyung1Jung self-assigned this Jan 26, 2022
@Hyung1Jung Hyung1Jung changed the title put the token in http only cookie and defend against XSS attack apply distributed transactions for saga patterns to product and order domain Jan 26, 2022
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

No branches or pull requests

1 participant