Experience Edge and GraphQL: Delivering Sitecore Content Fast

Published content served from a global CDN

Experience Edge is Sitecore's globally distributed delivery layer for headless sites. When you publish in XM Cloud, content is pushed to Edge, and your frontend queries it via GraphQL. No delivery servers to manage.

How It Works

  1. Author publishes content in XM Cloud
  2. Content and layout are pushed to Experience Edge
  3. Frontend apps query Edge GraphQL with an API key
  4. Responses are cached at the edge for speed

Querying an Item

query {
  item(path: "/sitecore/content/site/home/news", language: "en") {
    name
    field(name: "Title") { value }
    children(first: 10) {
      results {
        name
        url { path }
        field(name: "Summary") { value }
      }
    }
  }
}

Querying Layout

The layout query returns the full page structure — what the Next.js SDK uses to render pages:

query {
  layout(site: "mysite", routePath: "/about", language: "en") {
    item { rendered }
  }
}

Search Queries

Edge supports a search query for filtering items by template, path, or field values — useful for listings like "latest 5 news articles". For full-text search experiences, use Sitecore Search instead.

Caching and Revalidation

  • Edge caches responses; publishes clear relevant caches
  • Use webhooks on publish to trigger Next.js on-demand revalidation
  • Combine with ISR for fast, fresh pages

Limits to Respect

  • Rate limits on uncached requests — avoid querying Edge at runtime for every visitor; cache in your app
  • Query complexity limits — paginate and request only needed fields

Tips

  • Use the GraphQL IDE to explore your schema
  • Keep API keys server-side
  • Generate TypeScript types from your queries

Experience Edge removes the hardest part of Sitecore hosting. Your job becomes writing efficient queries and caching well.

Arivanandhan Chitheshwaran