Getting started with GraphQL and caching on Next.js + Apollo + Layer0
summary
Converts a REST backend to GraphQL using Next.js, Apollo Server and Apollo Client, hosted on Layer0 by Limelight, and demonstrates edge caching of GraphQL POST responses. Shows route config with a one‑hour TTL, per‑operation cache handlers, and surrogate keys per product so single‑product purges are possible via UI or API. Uses Layer0 devtools to prove misses become hits at the edge and shows the modified cache headers and x0t hit indicator.
AI-written summary · about
related talks
49mUnlocking Performance with Response Caching
25mGraphQL and caching - Why is it so hard, or is it?
24mHow to cache GraphQL queries at the edge
37mCaching Deep Dive: The Ultimate Way To Speed up Your GraphQL API
21mCaching GraphQL APIs
23mHow to edge cache GraphQL APIs
27mConsume GraphQL API with Apollo Client and React
24mGraphQL Clients
