DataLoader with "Spring for GraphQL"

Поделиться
HTML-код
  • Опубликовано: 28 ноя 2024

Комментарии • 6

  • @AbhishekChanda
    @AbhishekChanda 4 часа назад

    How is BatchLoader injected in the constructor without adding it as class member field?

  • @AnkurBhakta
    @AnkurBhakta 2 года назад +1

    Great video! Very clear and concise

  • @eelessam
    @eelessam 2 года назад +1

    Great video! Hadn't been able to find any good documentation on doing this well with Spring for GraphQL

  • @GeekOverdose
    @GeekOverdose Год назад

    wow. this is amazing. thanks

  • @chhavitekriwal9608
    @chhavitekriwal9608 Год назад

    For making the handler functions run in parallel, do I need to do anything else other than making the backing function return a Mono object? I've done that but I don't know how to check whether they are indeed running in parallel. The @trace directive isn't returning anything and the response time is also the same (sometimes even more).

    • @nils-hartmann
      @nils-hartmann  Год назад

      I've built the trace directive myself, not sure if it is working with newest Spring for GraphQL versions. I think the easiest is to use the TracingInstrumentation (www.graphql-java.com/documentation/instrumentation/#apollo-tracing-instrumentation) provided by graphql-java. You can create and instance yourself and return it from a Spring configuration @Bean method.
      Mono should work out of the box, maybe you need to configure the thread pool.