A hands-on tutorial covering two key GraphQL performance problems in Java: the N+1 problem and sequential execution. The N+1 issue arises when fetching books for each author triggers a separate call per author. The solution uses Spring for GraphQL's @BatchMapping annotation to batch all author IDs into a single query. Virtual threads (enabled via a single property) are also introduced to parallelize field resolver calls, reducing multi-second sequential delays to near-instant responses.
•12m watch time
Sort: