<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Roshan Ravaliya</title>
    <description>The latest articles on DEV Community by Roshan Ravaliya (@roshan_ravaliya_c84c08f79).</description>
    <link>https://dev.to/roshan_ravaliya_c84c08f79</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3746726%2F332e3a2b-bcdb-493f-823e-770c56e63aa0.png</url>
      <title>DEV Community: Roshan Ravaliya</title>
      <link>https://dev.to/roshan_ravaliya_c84c08f79</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/roshan_ravaliya_c84c08f79"/>
    <language>en</language>
    <item>
      <title>SitecoreAI Deployments: The Shift from Legacy to Decoupled Architecture</title>
      <dc:creator>Roshan Ravaliya</dc:creator>
      <pubDate>Mon, 30 Mar 2026 12:34:30 +0000</pubDate>
      <link>https://dev.to/roshan_ravaliya_c84c08f79/sitecoreai-deployments-the-shift-from-legacy-to-decoupled-architecture-f66</link>
      <guid>https://dev.to/roshan_ravaliya_c84c08f79/sitecoreai-deployments-the-shift-from-legacy-to-decoupled-architecture-f66</guid>
      <description>&lt;p&gt;When enterprise teams migrate to SitecoreAI (XM Cloud), they celebrate the shift to a headless, composable, and AI-driven architecture. However, a common technical trap awaits them during the DevOps setup: &lt;/p&gt;

&lt;p&gt;“&lt;em&gt;&lt;strong&gt;how you deploy your frontend matters just as much as how you build it&lt;/strong&gt;&lt;/em&gt;.” &lt;/p&gt;

&lt;p&gt;This decision directly impacts: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Release velocity
&lt;/li&gt;
&lt;li&gt;Developer experience
&lt;/li&gt;
&lt;li&gt;Deployment speed
&lt;/li&gt;
&lt;li&gt;Production risk &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In the SitecoreAI ecosystem, there are two primary ways to deploy your Next.js application: the Integrated (Coupled) approach via the Sitecore Deploy App, and the true Decoupled approach using independent CI/CD pipelines. &lt;/p&gt;

&lt;p&gt;Decoupling in SitecoreAI isn’t just an architectural choice it’s the difference between treating your frontend as a deployable product versus a dependency of your CMS &lt;/p&gt;

&lt;p&gt;Let’s break down the architectures, execution behaviours, and why enterprise teams are standardizing on the decoupled model. &lt;/p&gt;

&lt;p&gt;In this guide, we’ll break down: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Coupled vs Decoupled deployment in SitecoreAI &lt;/li&gt;
&lt;li&gt;Real-world system behaviour
&lt;/li&gt;
&lt;li&gt;Architecture patterns
&lt;/li&gt;
&lt;li&gt;Pros, cons, and when to choose each &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What is Coupled vs Decoupled Deployment in SitecoreAI
&lt;/h2&gt;

&lt;p&gt;In Sitecore AI, there are two primary deployment models: &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1) Coupled (Integrated) Deployment&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Managed via SitecoreAI Deploy App
&lt;/li&gt;
&lt;li&gt;Backend (CM) + Frontend (Next.js) deployed together
&lt;/li&gt;
&lt;li&gt;Single pipeline
&lt;/li&gt;
&lt;li&gt;One pipeline control everything
&lt;/li&gt;
&lt;li&gt;Small UI change → full deployment
&lt;/li&gt;
&lt;li&gt;Deployments act as a monolith.
&lt;/li&gt;
&lt;li&gt;Small UI change → full deployment must trigger a deployment through Sitecore. &lt;/li&gt;
&lt;li&gt;Typical Flow:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Git → Deploy App → CM + Edge + Frontend → Live 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Deployment time: 15–30 minutes &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;2) Decoupled Deployment&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Backend and frontend deployed independently
&lt;/li&gt;
&lt;li&gt;Separate CI/CD pipelines
&lt;/li&gt;
&lt;li&gt;Frontend hosted on: 

&lt;ul&gt;
&lt;li&gt;Vercel
&lt;/li&gt;
&lt;li&gt;Netlify
&lt;/li&gt;
&lt;li&gt;BYOF (Bring Your Own Frontend) &lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;Flow
&lt;/li&gt;

&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;- Backend: Git → Deploy App → CM + Edge
- Frontend: Git → Vercel → Live
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Deployment time: 

&lt;ul&gt;
&lt;li&gt;Small apps: 2–5 minutes
&lt;/li&gt;
&lt;li&gt;Enterprise apps: 5–10 minutes&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;




&lt;h3&gt;
  
  
  The Architecture: Coupled vs. Decoupled
&lt;/h3&gt;

&lt;p&gt;To understand the difference, we must trace how code moves from your repository to the delivery edge. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1) The Coupled (Integrated) Architecture&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In this legacy model, the Sitecore Deploy App acts as the monolithic orchestrator for your entire stack. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your GitHub/Azure DevOps repository is connected directly to the SitecoreAI Deploy App. &lt;/li&gt;
&lt;li&gt;When a deployment is triggered, SitecoreAI builds BE and FE, pushes schema changes to Experience Edge, and then pushes the Next.js frontend code to the Sitecore-managed rendering host - all in the same pipeline instance. &lt;/li&gt;
&lt;li&gt;Git → Deploy App → CM + Edge + FE → Live &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;2) The Decoupled Architecture&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In this model, the CMS backend and the Next.js frontend are treated as completely independent microservices. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pipeline A (The CMS)&lt;/strong&gt;: The SitecoreAI Deploy App is strictly responsible for building the CM server and pushing backend schema/configuration changes to the Authoring environment. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pipeline B (The Frontend)&lt;/strong&gt;: The Next.js application is built and deployed via its own pipeline. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;BE:&lt;/strong&gt; Git → Deploy App → CM + Edge &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FE:&lt;/strong&gt; Git → Vercel → FE &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you place both the backend and frontend in the same repository (Monorepo), the Authoring environment pipeline will completely ignore the frontend code, and the Delivery pipeline will ignore the backend code.  &lt;/p&gt;

&lt;p&gt;Alternatively, you can physically split them into two different repositories (Polyrepo). &lt;/p&gt;




&lt;h3&gt;
  
  
  The Two Flavors of Decoupled Frontend Hosting:
&lt;/h3&gt;

&lt;p&gt;When decoupling, you have two options for hosting your Next.js delivery layer: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Option A&lt;/strong&gt;: Sitecore-Managed (Inbuilt Vercel): You utilize the Vercel infrastructure provisioned and managed by Sitecore under the hood. It provides a managed Editing Host, but you still decouple the deployment triggers.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Note: You can not use public url for this environment for the preview site, it is useful Page builder and experience editor only.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;&lt;p&gt;&lt;strong&gt;Option B&lt;/strong&gt;: Bring Your Own Frontend (BYOF - External): You connect your own enterprise Vercel or Netlify account directly to your repository. This requires manual configuration but offers ultimate DevOps control. &lt;/p&gt;&lt;/li&gt;

&lt;/ul&gt;

&lt;h4&gt;
  
  
  Architectural Implementation Steps
&lt;/h4&gt;

&lt;p&gt;Moving to a decoupled setup requires re configuring your pipelines to isolate the delivery edge. Here is the architectural flow: &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Establish the CMS Pipeline&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In the SitecoreAI Cloud Portal, configure your Deploy App to only build the CM environment. &lt;/li&gt;
&lt;li&gt;Disable any integrated frontend rendering host configurations if moving entirely to BYOF.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Choose and Configure the Frontend Pipeline&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;If using BYOF (External Vercel/Netlify): Go directly to your external hosting provider. Create a new project, point it to your repository, and specify the root directory of your Next.js application. &lt;/p&gt;

&lt;p&gt;-Note: Manually configure all variable in step 3&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If using Sitecore-Managed (Inbuilt Vercel): Ensure your editing host is configured within your xmcloud.build.json to point to the correct Next.js application path, but rely on external webhooks to trigger UI-only builds if supported by your tier. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Note: Sitecore configure all required variable automatically, No need to do Step 3 &lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Map the Environment Variables&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;Because Sitecore is no longer auto-injecting environment variables into the delivery host, you must map them manually in your frontend host. Crucial variables include: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SITECORE_API_KEY (Your Experience Edge Token) &lt;/li&gt;
&lt;li&gt;SITECORE_API_HOST (The Experience Edge GraphQL endpoint) &lt;/li&gt;
&lt;li&gt;JSS_APP_NAME (The name of your site configuration) &lt;/li&gt;
&lt;li&gt;GRAPH_QL_ENDPOINT (The endpoint for the delivery layer)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step 4: Configure CI/CD Hooks&lt;/strong&gt;  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Set up GitHub Actions, Azure Pipelines, or Vercel webhooks to trigger frontend builds automatically upon merging to your main or staging branches.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Common Troubleshooting Scenarios&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Experience Editor breaks due to incorrect editing host setup &lt;/li&gt;
&lt;li&gt;Mismatched GraphQL schemas between FE and Edge &lt;/li&gt;
&lt;li&gt;Environment variable drift between environments &lt;/li&gt;
&lt;li&gt;Preview vs Delivery endpoint confusion&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Pros and Cons&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Coupled (Legacy) Deployment&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Pros:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Simplicity: A single pane of glass for all deployments in the Sitecore Cloud Portal. &lt;/li&gt;
&lt;li&gt;Beginner Friendly: SitecoreAI handles the Edge and Editing Host environment variable mapping automatically. &lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Cons:&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Slow Feedback Loop: Frontend deployments take drastically longer because they wait on CM orchestration. &lt;/li&gt;
&lt;li&gt;Difficult Rollbacks: Rolling back a bad frontend deployment often means reverting the entire CM state. &lt;/li&gt;
&lt;li&gt;Lack of DevOps Control: You cannot easily utilize advanced CI/CD testing steps (like Playwright or Cypress) before the frontend deploys. &lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;Decoupled Deployment &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Pros:&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Blazing Fast Iteration: Frontend deployments finish in minutes. &lt;/li&gt;
&lt;li&gt;Independent Rollbacks: Revert a bad UI push instantly without affecting the CMS backend. &lt;/li&gt;
&lt;li&gt;Security &amp;amp; Access: Frontend developers don't need access to the Sitecore Cloud Portal to do their jobs. &lt;/li&gt;
&lt;li&gt;Reduced frontend deployment time by 80% &lt;/li&gt;
&lt;li&gt;Enabled parallel FE/BE releases &lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Cons:&lt;/strong&gt; &lt;br&gt;
      - Manual Configuration: You must manage API keys, webhooks, and environment variables manually. &lt;br&gt;
      - Two Pipelines: DevOps teams must monitor two separate deployment streams. &lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Feature &lt;/th&gt;
&lt;th&gt; Coupled (Integrated) &lt;/th&gt;
&lt;th&gt; Decoupled (Standalone) &lt;/th&gt;
&lt;/tr&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Frontend Deploy Speed &lt;/td&gt;
&lt;td&gt;15 - 30+ Minutes &lt;/td&gt;
&lt;td&gt;2 - 5 Minutes (small Apps) 


5 – 10 minutes (Enterprise Apps) &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rollback Complexity &lt;/td&gt; &lt;td&gt;High (Tied to CM state) &lt;/td&gt; &lt;td&gt;Low (Instant via Vercel/Netlify) &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CI/CD Customization &lt;/td&gt;
&lt;td&gt;Limited &lt;/td&gt;
&lt;td&gt;Unlimited (GitHub Actions, etc.) &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Setup Effort &lt;/td&gt;
&lt;td&gt;Low (Out of the box) &lt;/td&gt;
&lt;td&gt;Medium (Requires manual Env Vars) &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Best For &lt;/td&gt;
&lt;td&gt;POCs, Sandboxes, Small Teams &lt;/td&gt;
&lt;td&gt;Enterprise, Agile Teams, Production &lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h4&gt;
  
  
  When is Decoupled NOT the Right Choice?
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Small teams without DevOps expertise &lt;/li&gt;
&lt;li&gt;POCs or hackathons &lt;/li&gt;
&lt;li&gt;Projects with minimal frontend changes &lt;/li&gt;
&lt;li&gt;Teams heavily reliant on Experience Editor with no FE team&lt;/li&gt;
&lt;/ul&gt;




&lt;h4&gt;
  
  
  Why Enterprises Prefer Decoupled XM Cloud
&lt;/h4&gt;

&lt;p&gt;While the Coupled deployment model is excellent for a quick Proof of Concept, the Decoupled architecture is the undisputed best practice for production environments. &lt;/p&gt;

&lt;p&gt;The core promise of a headless CMS is agility. If your frontend developers are forced to wait for a monolithic backend deployment pipeline just to update a button color, you have lost the primary benefit of headless architecture like Release velocity, Team independence, Parallel development. &lt;/p&gt;

&lt;p&gt;Decoupling your deployments aligns perfectly with modern software engineering principles:  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Separation of Concerns: The delivery layer (Next.js) and the authoring layer (CM) have different lifecycles and should fail or succeed independently. &lt;/li&gt;
&lt;li&gt;Developer Experience (DevEx): Frontend engineers can work entirely within their native tools (Vercel, GitHub) without navigating Sitecore portals. &lt;/li&gt;
&lt;li&gt;Risk Mitigation: Isolating the delivery pipeline ensures that an error in a custom backend Sitecore pipeline won't prevent you from pushing a critical UI hotfix to your live website. &lt;/li&gt;
&lt;li&gt;Reduce Deployment time more than 70%
&lt;/li&gt;
&lt;li&gt;Enabled parallel FE/BE releases&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Untangle your pipelines, secure your Edge tokens, and let your frontend run free. &lt;/p&gt;




&lt;h3&gt;
  
  
  Final Thoughts
&lt;/h3&gt;

&lt;p&gt;Decoupling in SitecoreAI is not just an optimization-it’s a mindset shift. &lt;/p&gt;

&lt;p&gt;You move from: &lt;/p&gt;

&lt;p&gt;-&lt;strong&gt;&lt;em&gt;“Frontend as part of CMS”&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;To: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;em&gt;“Frontend as an independent product”&lt;/em&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And that changes everything. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Official Documentation References&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;To explore the technical specifications of these architectures, refer to the official Sitecore documentation: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.google.com/search?q=https://doc.sitecore.com/xmc/en/developers/xm-cloud/walkthrough--setting-up-a-headless-project-with-byof.html" rel="noopener noreferrer"&gt;Walkthrough: Setting up a headless project with BYOF (Bring Your Own Frontend) &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://doc.sitecore.com/xmc/en/developers/xm-cloud/the-xm-cloud-build-configuration.html" rel="noopener noreferrer"&gt;Sitecore XM Cloud Deploy App Architecture &amp;amp; Build Configurations&lt;/a&gt; &lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>architecture</category>
      <category>cicd</category>
      <category>devops</category>
      <category>nextjs</category>
    </item>
    <item>
      <title>Turbocharge Your Content with Sitecore AI Publishing V2</title>
      <dc:creator>Roshan Ravaliya</dc:creator>
      <pubDate>Sat, 21 Feb 2026 14:22:20 +0000</pubDate>
      <link>https://dev.to/roshan_ravaliya_c84c08f79/turbocharge-your-content-with-sitecore-ai-publishing-v2-18b5</link>
      <guid>https://dev.to/roshan_ravaliya_c84c08f79/turbocharge-your-content-with-sitecore-ai-publishing-v2-18b5</guid>
      <description>&lt;p&gt;If you have worked with Sitecore AI (XM Cloud), you already know: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Publishing performance directly impacts delivery speed and author productivity. &lt;/li&gt;
&lt;li&gt;For a long time, Snapshot Publishing (V1) powered Sitecore AI content delivery. It worked but as projects scaled, publishing times increased, CM servers became overloaded, and queues slowed down deployments. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now, Sitecore introduces a modern, cloud-native approach: &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Experience Edge Runtime (Publishing V2)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Let’s explore what changed and why it matters. &lt;/p&gt;

&lt;h3&gt;
  
  
  The Bottleneck: Publishing V1 (Snapshot-Based)
&lt;/h3&gt;

&lt;p&gt;In Publishing V1, when you publish a page, the CM server performs heavy processing before the content even reaches Experience Edge&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Calculated the entire layout. &lt;/li&gt;
&lt;li&gt;Resolved all data sources. &lt;/li&gt;
&lt;li&gt;Executed Layout Service pipes. &lt;/li&gt;
&lt;li&gt;Created a massive, static JSON blob (a "Snapshot") to send to Experience Edge.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The Result:&lt;/strong&gt; Publishing a simple page update could take minutes. Even a small content change requires rebuilding the entire page structure. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;As your site grows:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Layout complexity increases &lt;/li&gt;
&lt;li&gt;Datasource relationships multiply &lt;/li&gt;
&lt;li&gt;CPU usage on CM rises &lt;/li&gt;
&lt;li&gt;Publish queues grow longer &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What once took seconds can quickly turn into minutes. &lt;/p&gt;

&lt;p&gt;And at scale, this affects both publishing speed and authoring performance. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Solution: Publishing V2 (Edge Runtime)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Sitecore AI introduced a new way to publish content: &lt;strong&gt;Publishing V2&lt;/strong&gt; (also known as &lt;strong&gt;Edge Runtime&lt;/strong&gt; mode). It sounds technical, but it’s a beautiful simplification of how data moves. &lt;/p&gt;

&lt;p&gt;Publishing V2 changes the architecture entirely. &lt;/p&gt;

&lt;p&gt;Instead of pre-calculating the full layout JSON on the CM server, Sitecore now: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Publishes raw item data &lt;/li&gt;
&lt;li&gt;Publishes layout references &lt;/li&gt;
&lt;li&gt;Defers JSON assembly to the Edge runtime&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The final JSON response is assembled dynamically on the Experience Edge delivery layer not on CM. &lt;/p&gt;

&lt;p&gt;This shifts the workload from the single CM instance to the massively scalable Edge CDN. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The "Cake" Analogy: V1 vs. V2&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;To understand the difference, imagine you are sending a cake to a friend. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Publishing V1 (Snapshot):&lt;/strong&gt;  &lt;/p&gt;

&lt;p&gt;You bake the cake, frost it, box it up, and ship the entire heavy box. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Technical Translation:&lt;/strong&gt; Sitecore calculates the entire layout JSON on the CM server and sends a massive static blob to Experience Edge. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Result:&lt;/strong&gt; Slow and heavy.
&lt;/li&gt;
&lt;li&gt;If you change one ingredient, you must bake the whole cake again.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Publishing V2 (Edge Runtime):&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You just send the &lt;strong&gt;recipe&lt;/strong&gt; and the &lt;strong&gt;ingredients&lt;/strong&gt;. Your friend (Experience Edge) assembles the cake instantly when someone asks for it.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Technical Translation:&lt;/strong&gt; Sitecore sends only the raw item data and layout references. Experience Edge assembles the JSON at "runtime" when the API is called. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Result:&lt;/strong&gt; Lightning fast.
&lt;/li&gt;
&lt;li&gt;You only ship the tiny changes. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Architecture Comparison&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;V1 Flow (Snapshot Publishing)&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CM → Layout Service Processing → Full JSON Snapshot → Experience Edge → CDN → Frontend &lt;/li&gt;
&lt;li&gt;Everything is assembled on CM before delivery. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;V2 Flow (Edge Runtime)&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CM → Raw Items + Layout References → Edge Worker Runtime → JSON Assembly → CDN → Frontend &lt;/li&gt;
&lt;li&gt;JSON is assembled at request time by the Edge worker.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fndxljb9lcjf0vzvmds15.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fndxljb9lcjf0vzvmds15.png" alt="V1 vs V2" width="800" height="436"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Key Advantages of Publishing V2 &lt;/p&gt;

&lt;p&gt;1). Blazing Fast Publish Times &lt;/p&gt;

&lt;p&gt;Since layout JSON is no longer generated on CM, publish jobs typically complete in seconds rather than minutes. &lt;/p&gt;

&lt;p&gt;This is especially noticeable on: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Large component-based pages &lt;/li&gt;
&lt;li&gt;Sites with heavy personalization &lt;/li&gt;
&lt;li&gt;Complex layout structures &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;2️). Better CM Performance &lt;br&gt;
The CM instance is no longer CPU-bound by layout assembly. &lt;/p&gt;

&lt;p&gt;This means:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Better authoring performance &lt;/li&gt;
&lt;li&gt;Higher concurrency &lt;/li&gt;
&lt;li&gt;Multiple publish jobs can run safely &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;3️). True Scalability &lt;/p&gt;

&lt;p&gt;Processing shifts to the globally distributed Experience Edge runtime designed for high availability and horizontal scaling. &lt;/p&gt;

&lt;p&gt;Your publishing performance now scales with Edge infrastructure, not your CM size. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Important Behavioral Change: Strict Dependencies&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;This is where V2 requires architectural awareness. &lt;/p&gt;

&lt;p&gt;In V1: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The snapshot captured fully resolved data at publish time. &lt;/li&gt;
&lt;li&gt;Previously resolved data could still exist inside snapshots.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In V2: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;JSON is assembled at request time. &lt;/li&gt;
&lt;li&gt;If a datasource item is not published, it does not exist in the GraphQL response.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;This can result in:&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Empty components &lt;/li&gt;
&lt;li&gt;Missing navigation items &lt;/li&gt;
&lt;li&gt;Incomplete JSON output &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Best Practice:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Always use: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Publish Related Items &lt;/li&gt;
&lt;li&gt;Or ensure parent and datasource items are included in the publish job.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Caching Behavior in V2&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;V2 invalidates cache per item ID. &lt;/p&gt;

&lt;p&gt;It does &lt;strong&gt;not automatically invalidate related items&lt;/strong&gt; such as: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Parent navigation &lt;/li&gt;
&lt;li&gt;Sibling teasers &lt;/li&gt;
&lt;li&gt;Shared components&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If a shared data source changes, and parents are not published, you may see stale content. &lt;/p&gt;

&lt;p&gt;Always plan publish dependency carefully. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to Implement (The "Switch")&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;No code changes required. No config patching. No redeployment of frontend. &lt;/p&gt;

&lt;p&gt;You can do this directly in the Sitecore AI Deploy Portal&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; Log in to the &lt;a href="https://deploy.sitecorecloud.io/" rel="noopener noreferrer"&gt;SitecoreAI Deploy&lt;/a&gt;.  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Select your Project and Environment (e.g., Production, QA, or Development).  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; Go to the Variables tab.  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4:&lt;/strong&gt; Click Create Variable and add the following: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Name: Sitecore_ExperienceEdge_dot_WorkerStoreEnabled  &lt;/li&gt;
&lt;li&gt;Value: TRUE
&lt;/li&gt;
&lt;li&gt;Target: CM&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F023mvtco1mynrm7idbwh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F023mvtco1mynrm7idbwh.png" alt="Screenshot" width="800" height="427"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5:&lt;/strong&gt; Save and deploy your environment.  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 6:&lt;/strong&gt; Once deployment completes, Republish all sites in the environment. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; Deployment + full republish is required for activation. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;To revert to V1:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Change the variable Sitecore_ExperienceEdge_dot_WorkerStoreEnabled to FALSE. &lt;/li&gt;
&lt;li&gt;Redeploy the environment &lt;/li&gt;
&lt;li&gt;Delete Edge content
&lt;/li&gt;
&lt;li&gt;Republish all sites&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Frontend Impact: The Best News&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;This is the "sweetest" part of the update. &lt;/p&gt;

&lt;p&gt;Do not need to change your Next.js API endpoints. &lt;/p&gt;

&lt;p&gt;Even though the backend architecture has completely changed, the Frontend Contract remains the same.&lt;/p&gt;

&lt;p&gt;✔ Your Endpoint: Remains &lt;a href="https://edge.sitecorecloud.io/api/graphql/v1" rel="noopener noreferrer"&gt;https://edge.sitecorecloud.io/api/graphql/v1&lt;/a&gt; &lt;br&gt;
✔ Your Query: Remains exactly the same. &lt;br&gt;
✔ Your JSON Response: Look exactly the same. &lt;br&gt;
✔ Require zero refactoring &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why?&lt;/strong&gt;  &lt;/p&gt;

&lt;p&gt;The change from V1 to V2 is purely architectural (Backend/Ingestion). It changes how data gets into the Edge, but it does not change Delivery how read it out. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;V1: Edge reads a pre-baked JSON blob. &lt;/li&gt;
&lt;li&gt;V2: Edge reads references and assembles the JSON blob on the fly.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Real-World Impact&lt;/strong&gt;  &lt;/p&gt;

&lt;p&gt;In enterprise implementations, teams have observed: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Homepage publish time reduced from minutes to seconds &lt;/li&gt;
&lt;li&gt;Massive reduction in publish queue backlogs &lt;/li&gt;
&lt;li&gt;Improved CM responsiveness during large content pushes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For content-heavy, composable architectures, this is a game-changing improvement. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Final Verdict&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;Publishing V2 (Experience Edge Runtime): &lt;/p&gt;

&lt;p&gt;✔ Faster &lt;br&gt;
✔ Lighter &lt;br&gt;
✔ More scalable &lt;br&gt;
✔ No frontend changes &lt;br&gt;
✔ Cleaner architecture&lt;/p&gt;

&lt;p&gt;The only requirement? &lt;/p&gt;

&lt;p&gt;Be disciplined with publish dependencies. &lt;/p&gt;

&lt;p&gt;For most Sitecore AI headless projects, this is a clear upgrade and a rare “win-win” architectural improvement. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Official Documentation&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Ready to make the switch? Check out the official guides here: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://doc.sitecore.com/xmc/en/developers/xm-cloud/enable-edge-runtime-publishing.html" rel="noopener noreferrer"&gt;Sitecore: Enable Edge Runtime Publishing&lt;/a&gt; &lt;/li&gt;
&lt;li&gt;&lt;a href="https://developers.sitecore.com/learn/accelerate/xm-cloud/pre-development/information-architecture/publishing-to-edge" rel="noopener noreferrer"&gt;Understanding Publishing Architecture&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Closing Thought&lt;/strong&gt;  &lt;/p&gt;

&lt;p&gt;Sitecore AI is evolving toward true cloud-native architecture and Publishing V2 is a major step forward. &lt;/p&gt;

&lt;p&gt;If you are still on Snapshot Publishing, this is the time to switch. &lt;/p&gt;

&lt;p&gt;Happy Publishing. &lt;/p&gt;

</description>
      <category>sitecoreai</category>
      <category>webdev</category>
      <category>ai</category>
      <category>developers</category>
    </item>
  </channel>
</rss>
