πŸ•ΈοΈ API Patterns and Practices: GraphQL
Home Chapters Examples Diagrams Bibliography GitHub β†—
Home / Real-time & Client Integration
Part 10 2 chapters

Real-time & Client Integration

Push live tracking updates with subscriptions and consume the graph from typed clients.

Chapter 21

Real-time: subscriptions vs SSE vs WebSockets

Push handling events with a GraphQL subscription over WebSocket or SSE, or a plain SSE feed that resumes from Last-Event-ID, and keep the per-event reads, queues and cleanup bounded.

17 min readRead β†’
Chapter 22

Client integration

A normalized cache, types generated from the canonical SDL, gql with local validation, the SmallRye typesafe and dynamic clients, partial results, and a header that names the client.

17 min readRead β†’
← Previous part Observability & the Gateway Next part β†’ Testing & Debugging

API Patterns and Practices: GraphQL

Designing GraphQL APIs well, with runnable examples in Quarkus SmallRye GraphQL and Python Strawberry against one canonical SDL contract.

Site

  • Outline
  • Bibliography

Reference

  • GraphQL β†—
  • GraphQL specification β†—
  • SmallRye GraphQL β†—
  • Strawberry β†—
  • View on GitHub β†—
  • Issues β†—
Open source Β· MIT Last built 2026-11-11