Skip to content

perf: [TA-179] 병렬 API 호출로 MyPage 로딩 성능 개선 (Promise.all)#91

Merged
seorinn merged 2 commits into
developfrom
TA-179-parallel-api-mypage
May 11, 2026
Merged

perf: [TA-179] 병렬 API 호출로 MyPage 로딩 성능 개선 (Promise.all)#91
seorinn merged 2 commits into
developfrom
TA-179-parallel-api-mypage

Conversation

@seorinn

@seorinn seorinn commented May 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • src/pages/MyPage/index.tsx에서 순차 실행되던 독립적인 API 호출을 Promise.allSettled로 병렬화
  • getUserInfo / getPhotographerInfo, getSavedPromotionList, getSavedPhotographerList 3개 API를 동시 요청으로 변경
  • Promise.allSettled 사용으로 일부 API 실패 시에도 나머지 결과 정상 처리
  • stale request 방지를 위한 cleanup 함수 추가 (ignore 플래그 패턴)

Changes

  • Promise.allPromise.allSettled로 변경: 저장 목록 API 실패가 프로필 렌더링을 막지 않음
  • ignore 플래그로 unmount 또는 deps 변경 시 stale state 업데이트 방지
  • 프로필 로드 실패 시 console.error로 명시적 에러 로깅

Test plan

  • MyPage 접속 시 프로필, 저장한 프로모션, 저장한 작가 목록이 정상 표시되는지 확인
  • PHOTOGRAPHER 역할 계정으로 접속 시 작가 프로필 및 저장 목록 정상 표시 확인
  • 네트워크 탭에서 3개 API가 동시(병렬)로 요청되는지 확인
  • 개발자 도구에서 저장 목록 API를 임시 차단해도 프로필은 정상 렌더링되는지 확인

Closes #11

@vercel

vercel Bot commented May 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
damaba Ready Ready Preview, Comment May 11, 2026 6:27am

@seorinn seorinn marked this pull request as ready for review May 11, 2026 06:30
@seorinn seorinn merged commit f9f1136 into develop May 11, 2026
3 checks passed
@seorinn seorinn deleted the TA-179-parallel-api-mypage branch May 11, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] 병렬 API 호출로 MyPage 로딩 성능 개선 (Promise.all)

1 participant