~/talk

Observing Spring for GraphQL in Action

Talkat Spring I/O 2023 Β· 2023-05-18..05-19Β· [graphql, observability]
slides:none on file

Spring for GraphQL 1.1 upgrades to Java 17 and Spring Framework 6 and 1.2 adds annotated exception handlers and schema-inspection tooling; the sample app (github graphql-music) runs on WebFlux, MongoDB and Zipkin via Docker Compose and demonstrates built-in Micrometer observability with Micrometer Context Propagation. Traces show HTTP β†’ GraphQL execution β†’ per-field data fetch spans; a deliberately slow lyrics fetch exposes an N+1 problem that is solved using batch mapping / data loader, producing a single batched call and much lower latency.

AI-written summary Β· about

  1. 0:00Spring for GraphQL intro
  2. 2:01GraphQL basics in Spring
  3. 8:07Architecture overview
  4. 10:15Spring for GraphQL 1.1 & 1.2
  5. 17:04Controller methods in 1.2
  6. 18:31Demo setup overview
  7. 22:22GraphQL schema & queries
  8. 23:47Schema inspection issues
  9. 27:17Playlist query mapping
  10. 30:07Observability & tracing
  11. 33:38Pagination with Window
  12. 35:04Fixing unmapped fields
  13. 39:16Cursor pagination demo
  14. 41:04N+1 problem demo
  15. 43:35Solving N+1 with batch
  16. 46:50Future plans
  17. 48:15Closing remarks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark β€” the status bar button does the same
?
this help
esc
close this, then clear every filter β€” or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.