How to implement a Dataloader with Appsync when using Serverless Aurora as a datasource?

0

To solve the n + 1 problem that graphql has when querying nested data or a collection, Dataloader was introduced. https://github.com/graphql/dataloader

From AWS docs:

GraphQL Proxy A component that runs the GraphQL engine for processing requests and mapping them to logical functions for data operations or triggers. The data resolution process performs a batching process (called the Data Loader) to your data sources. This component also manages conflict detection and resolution strategies.

https://docs.aws.amazon.com/appsync/latest/devguide/system-overview-and-architecture.html

How do I implement a Dataloader with Appsync when using Serverless Aurora as a datasource? Is this possible with just using apache velocity templates without using a lambda?

It seems that you can use a BatchInvoke on lambda. But that has a hard limit of 5 items in each batch.

  • The hard limit no longer exists! You can set it from 0 to 2000.

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠