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

✨ [STMT-295] 관리자 여부, 포도알 전송 가능 여부 판단 API 분리 및 멤버 상세 화면 통합 API 구현 #153

Merged
merged 15 commits into from
Sep 28, 2024

Conversation

05AM
Copy link
Member

@05AM 05AM commented Sep 24, 2024

💁 해결 하려는 문제를 적어주세요

UI에서 관리자만 보이는 옵션이 존재하여, 모든 API에 관리자 여부를 포함시키는 대신 이를 재사용 가능한 하나의 API로 통합했습니다.

하지만 이 방식은 멤버 또는 스터디 상세 화면에서 4~5개의 API 호출이 필요하게 되어, 통신 비용이 증가하고 효율성이 떨어지는 문제가 발생했습니다.

🤔 어떤 방식으로 해결했는지 적어주세요

따라서 클라이언트의 환경에 따라 필요한 정보만을 뽑아주는 BFF(Backend For Frontend) 패턴을 차용하여 기존의 API는 그대로 두고, 화면에 필요한 정보를 통합으로 모아 응답하는 개념적으로 외부 API를 구현했습니다.

🧑‍🏫 이해를 위해 필요한 자료가 있다면 첨부해주세요

스터디 상세 화면 스터디 멤버 상세 화면

@05AM 05AM added the feature label Sep 24, 2024
@05AM 05AM self-assigned this Sep 24, 2024
@05AM 05AM merged commit f4dd99b into dev Sep 28, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant