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

GraphQL defer directive를 활용한다. #4

Open
joohyung-park opened this issue May 16, 2022 · 1 comment
Open

GraphQL defer directive를 활용한다. #4

joohyung-park opened this issue May 16, 2022 · 1 comment

Comments

@joohyung-park
Copy link
Contributor

joohyung-park commented May 16, 2022

이슈

  • 같은 모델이어도 어떤 resolve field들은 리졸빙에 시간이 많이 소요
  • 오래 걸리는 필드가 병목이 되지 않도록 body를 multi part 로 끊어 올린다
    • GraphQL의 defer primitive활용

적용 예

  • Client side :
  • Server side : medibloc/drpalette-server#4809
@joohyung-park joohyung-park changed the title GraphQL 성능 이슈가 있을 경우 defer directive를 활용한다. GraphQL defer directive를 활용한다. May 17, 2022
@joohyung-park
Copy link
Contributor Author

Apollo server 4.0에 incremental body 지원 : https://www.apollographql.com/docs/apollo-server/api/apollo-server/

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

No branches or pull requests

2 participants