beta

Caching in subgraphs with Java & DGS

Learn about caching GraphQL operations and query responses using Caffeine, Spring Boot, and DGS

Shuttle

Details

  • Updated Mar 20, 2025
  • 4 lessons

What you'll learn

  • Implement GraphQL operation caching using the PreparsedDocumentProvider interface

  • Configure cache size and expiration using Caffeine

  • Implement GraphQL method response caching with CaffeineCacheManager

  • Use the @Cacheable and @CacheEvict annotations

Prerequisites

  • Basic Java programming knowledge
  • Familiarity with Spring Boot basics
  • Intro to GraphQL with DGS
  • Federation with Java & DGS

Instructor

Liz Hennessy

This tutorial includes

    Currently in
    beta

  • tasks
  • multiple choice questions
  • fill in the blank activities

  • Coming soon

    • code challenges
    • videos