fix(booking): synchronized + flush를 사용한 예매 중복 생성 방지 #95
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
연관 이슈
작업 내용
동작 원리
1. 동시에 두개의 예매를 보낸 경우
: 둘 다 200
: 첫번째 예매는 정상처리, 두번째 예매는 중복 감지 후 저장하지 않음
: 정상 처리 및 중복 감지 안내
: 첫번째 예매만 전송됨
2. 0.5초 간격으로 두개의 예매를 보낸 경우(1과 동일한 결과)
프론트 응답
: 둘 다 200
백엔드 로직 처리
: 첫번째 예매는 정상처리, 두번째 예매는 중복 감지 후 저장하지 않음
: 정상 처리 및 중복 감지 안내
: 첫번째 예매만 전송됨
논의하고 싶은 내용
공유하고 싶은 내용
기타