첨부파일 제한 처리 재작업#141
Open
yeomin4242 wants to merge 8 commits into
Open
Conversation
…tructuring export
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
joooii
approved these changes
Apr 2, 2026
joooii
left a comment
Member
There was a problem hiding this comment.
멱등성에 대해서 프론트에서도 작업이 필요한 줄 몰랐네요
또 한 수 배우고 갑니다 ... LGTM!
minwoonggi
reviewed
Apr 4, 2026
|
|
||
| const res = idempotencyKey | ||
| ? await withIdempotentRetry(execute) | ||
| : await execute(); |
Contributor
There was a problem hiding this comment.
idempotencyKey 가없더라도 한 번 재시도 하는 이유가 있나요
Comment on lines
38
to
+41
| const handleEndRequest = async (attachment: AttachedFile) => { | ||
| if (submitting) return; | ||
| setSubmitting(true); | ||
| const idempotencyKey = createIdempotencyKey(); |
Contributor
There was a problem hiding this comment.
핸들 함수 안에 createIndempotencyKey를 사용하면 요청 버튼 클릭시마다 새로운 난수가 요청되지 않나요?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
#️⃣연관된 이슈
#140
📝작업 내용
중복 클릭, 네트워크 재전송, 일시적 장애 상황에서도 동일 요청이 안전하게 처리되도록 FE에 멱등키 전달과 지수 백오프 재시도 로직을 적용했습니다.
주요 변경 사항
createIdempotencyKey()공통 유틸을 추가해 write 계열 요청마다 고유 멱등키를 생성하도록 했습니다.board,study,project생성/수정/종료 요청에X-Idempotency-Key헤더를 전달하도록 반영했습니다.withIdempotentRetry()공통 재시도 유틸을 추가했습니다.300ms → 600ms → 1200ms + jitter형태의 지수 백오프로 구성했습니다.429,502,503,504, 그리고 서버에서REQUEST_IN_PROGRESS성격으로 내려오는409응답으로 제한했습니다.스크린샷 (선택)
💬리뷰 요구사항(선택)