Skip to content

Experience Cloud Architecture

Experience Cloud is Salesforce’s platform for building external-facing digital experiences — customer portals, partner hubs, help centers, microsites, and storefronts. For the CTA exam, you must understand the full architecture stack: runtime frameworks (LWR vs Aura), Experience Builder, CMS, SEO, CDN, and multi-site strategy. This page focuses on architecture and design decisions; for security-specific concerns (licenses, sharing, guest users), see Portal & Community Security.

Architecture Overview

flowchart TD
    subgraph "User Layer"
        Auth["Authenticated Users\n(Customer / Partner)"]
        Guest["Guest Users\n(Unauthenticated)"]
    end

    subgraph "Delivery Layer"
        CDN["CDN\n(Akamai / Cloudflare)"]
        CustomDomain["Custom Domain\n(CNAME / HTTPS)"]
    end

    subgraph "Runtime Layer"
        LWR["LWR Runtime\n(Static Rendering)"]
        Aura["Aura Runtime\n(Dynamic Rendering)"]
    end

    subgraph "Builder Layer"
        EB["Experience Builder\n(Drag & Drop)"]
        Themes["Themes & Branding"]
        Pages["Pages & Navigation"]
        LWC["Custom LWC Components"]
    end

    subgraph "Content Layer"
        CMS["Salesforce CMS"]
        WS["Workspaces"]
        CT["Content Types"]
        CH["Channels\n(Site / Headless / Public)"]
    end

    subgraph "Data Layer"
        CRM["CRM Data\n(Accounts, Cases, Opps)"]
        KB["Knowledge Base"]
        DC["Data Cloud"]
        AF["Agentforce\n(AI Agents)"]
    end

    Auth --> CDN
    Guest --> CDN
    CDN --> CustomDomain
    CustomDomain --> LWR
    CustomDomain --> Aura
    LWR --> EB
    Aura --> EB
    EB --> Themes
    EB --> Pages
    EB --> LWC
    EB --> CMS
    CMS --> WS
    WS --> CT
    WS --> CH
    Pages --> CRM
    Pages --> KB
    LWC --> DC
    LWC --> AF

    style LWR fill:#1565c0,color:#fff
    style Aura fill:#e65100,color:#fff
    style CDN fill:#2e7d32,color:#fff
    style CMS fill:#4a148c,color:#fff
    style AF fill:#00695c,color:#fff

LWR vs Aura: Runtime Framework Comparison

Choosing between LWR (Lightning Web Runtime) and Aura is the first architectural decision. LWR is the modern default for new sites; Aura remains relevant for legacy implementations.

DimensionLWRAura
Component modelLWC onlyAura + LWC
RenderingStatic — built and cached at publish timeDynamic — rendered on every page load
Page load speed~50% faster than Aura (sub-second)Slower — fetches component metadata per request
SEONative support: clean URLs, meta tags, sitemap, robots.txtLimited — requires workarounds for SEO
URL structureNo /s/ prefix (Winter ‘23+); SEO-friendly slugs/s/ prefix required
PublishingMust republish for changes to appearChanges display without republishing
Pre-built componentsGrowing library (~30+)Mature library (~60+)
Custom CSSFull CSS customization, CSS custom propertiesLimited to SLDS overrides
Head markupInject custom <head> markup (analytics, fonts)Not supported natively
Security modelLightning Web Security (LWS)Lightning Locker
ThemingDesign tokens, CSS variables, granular controlTheme panel with limited overrides
Offline supportPlanned (progressive web app model)Not available
Recommended forAll new implementations (2024+)Existing sites, Aura component dependencies

LWR Component Gaps

LWR has fewer out-of-the-box components than Aura. Before committing to LWR, verify that all required standard components are available. Missing components (e.g., certain report viewers, chat widgets in older releases) may require custom LWC development. Check the Salesforce release notes for your target release.

Migration Path

There is no automated Aura-to-LWR migration tool. Migration requires rebuilding the site on an LWR template. Plan for: rewriting Aura components as LWC, recreating page layouts, re-theming, and retesting all functionality. Salesforce recommends migrating during major redesign cycles rather than as a standalone project.

Site Type and Template Selection

Experience Cloud offers templates organized by use case. Each template is available in LWR, Aura, or both.

Template Decision Guide

TemplateFrameworkUse CaseKey Features
Customer ServiceLWR / AuraSupport portal, case managementCase creation, knowledge base, account management
Help CenterLWR / AuraSelf-service knowledge discoveryKnowledge search, article navigation, case deflection
Partner CentralLWR / AuraChannel partner enablementDeal registration, lead distribution, co-selling workflows
Customer Account PortalLWR / AuraAuthenticated self-serviceAccount management, order history, profile updates
Build Your Own (LWR)LWRFully custom experienceMaximum flexibility, custom LWC, API integrations
Build Your Own (Aura)AuraLegacy custom buildsSupports both Aura and LWC components
Microsite (LWR)LWRCampaign pages, event sites, lead captureLightweight, unauthenticated, fast setup
B2C Commerce (LWR)LWRE-commerce storefrontProduct catalog, cart, checkout, order management
Tabs + VisualforceVisualforceDeep Visualforce customizationFull Visualforce page embedding, legacy integrations

Template Selection Flowchart

flowchart TD
    Start["New Experience\nCloud Site"] --> Q1{"Primary\npurpose?"}

    Q1 -->|"Customer support"| Q2{"Need knowledge\nself-service focus?"}
    Q2 -->|Yes| HC["Help Center\n(LWR)"]
    Q2 -->|No| CS["Customer Service\n(LWR)"]

    Q1 -->|"Partner channel"| PC["Partner Central\n(LWR)"]

    Q1 -->|"Account self-service"| CAP["Customer Account\nPortal (LWR)"]

    Q1 -->|"Marketing / events"| MS["Microsite\n(LWR)"]

    Q1 -->|"E-commerce"| B2C["B2C Commerce\n(LWR)"]

    Q1 -->|"Highly custom"| Q3{"Existing Aura\ncomponents?"}
    Q3 -->|Yes| BYOAura["Build Your Own\n(Aura)"]
    Q3 -->|No| BYOLWR["Build Your Own\n(LWR)"]

    style HC fill:#1565c0,color:#fff
    style CS fill:#1565c0,color:#fff
    style PC fill:#e65100,color:#fff
    style BYOLWR fill:#2e7d32,color:#fff
    style MS fill:#4a148c,color:#fff

CMS Architecture

Salesforce CMS is a hybrid content management system — it delivers content natively within Experience Cloud sites and also supports headless delivery via API to external channels.

Core CMS Concepts

ConceptDescriptionScope
WorkspaceContainer for content; controls contributor access, languages, and permissionsPer-org; multiple workspaces per org
Content TypeSchema defining the fields a content item has (e.g., Blog, FAQ, Banner)Global — shared across all workspaces
Content ItemAn individual piece of content (article, image, document)Belongs to one workspace
ChannelDistribution endpoint connecting a workspace to a site or external systemOne workspace can map to multiple channels
CollectionCurated grouping of content items for displayUsed in CMS components on pages

CMS Delivery Architecture

flowchart LR
    subgraph "CMS Workspace"
        Authors["Content Authors"]
        CT["Content Types\n(Blog, FAQ, Banner)"]
        Items["Content Items"]
    end

    subgraph "Channels"
        SiteChannel["Experience Cloud\nSite Channel"]
        PublicChannel["Public Channel\n(Marketing, Email)"]
        HeadlessChannel["Headless API\nChannel"]
    end

    subgraph "Delivery Targets"
        LWRSite["LWR Site\n(Native CMS Components)"]
        ExtSite["External Website\n(React, Next.js)"]
        MobilApp["Mobile App"]
        MCEmail["Marketing Cloud\nEmail"]
    end

    Authors --> CT --> Items
    Items --> SiteChannel --> LWRSite
    Items --> PublicChannel --> MCEmail
    Items --> HeadlessChannel --> ExtSite
    Items --> HeadlessChannel --> MobilApp

    style SiteChannel fill:#1565c0,color:#fff
    style HeadlessChannel fill:#e65100,color:#fff
    style PublicChannel fill:#2e7d32,color:#fff

Headless CMS APIs

APIPurposeUse Case
Connect REST APIRetrieve published content by channelExternal sites, mobile apps
Tooling APICreate/manage content types programmatically (JSON)CI/CD, content type deployment
Metadata APIDeploy content types as metadata (XML)Scratch orgs, sandboxes, source control
Connect Apex ClassesAccess CMS content within ApexCustom LWC data providers, integrations

CMS vs External CMS

Salesforce CMS is ideal when content authors are already in Salesforce and content needs CRM data context (e.g., personalized content by account segment). For organizations with established CMS platforms (WordPress, Contentful, Sitecore), use headless integration patterns rather than migrating all content into Salesforce CMS.

SEO and Performance

SEO Capabilities (LWR Sites)

CapabilityDetailsConfiguration
Clean URLsNo /s/ prefix; human-readable paths (e.g., /help/billing)Automatic for LWR sites (Winter ‘23+)
SEO-friendly slugsAccount/Contact slugs replace record IDs in URLsEnable in Experience Builder settings
Meta tagsCustom <title>, <meta description>, Open Graph tags per pagePage Properties in Experience Builder
SitemapAuto-generated XML sitemap for search enginesEnable in Administration > Settings
Robots.txtConfigurable to control crawler behaviorEditable in Administration > Settings
Canonical URLsPrevent duplicate content indexingAutomatic for published pages
Head markupInject tracking scripts, custom fonts, structured dataExperience Builder > Settings > Head Markup

CDN and Caching Strategy

Experience Cloud uses Salesforce CDN (powered by Akamai or Cloudflare) for content delivery.

LayerWhat’s CachedTTLNotes
CDN edgeStatic assets (JS, CSS, images, fonts)Salesforce-managedAutomatic for all sites with CDN enabled
LWR publish cacheComponent markup and stylesUntil next publishLWR pre-builds at publish time
Browser cacheStatic resources, imagesStandard HTTP cache headersConfigurable via head markup
Apex CDN cacheApex controller responsesConfigurable via @AuraEnabled(cacheable=true)Reduces server round-trips
CMS content cachePublished CMS contentUntil content updateServed from CDN for guest users

Performance Checklist

For the CTA exam, know these performance levers: (1) enable CDN, (2) use LWR for static rendering, (3) mark Apex methods cacheable, (4) optimize images via CMS, (5) minimize custom component JavaScript, (6) use lazy loading for below-fold content, (7) limit API calls in component lifecycle hooks.

Guest User Architecture

Guest users access Experience Cloud sites without authentication. LWR sites created Winter ‘23+ are authenticated by default — you must explicitly enable public access.

AspectAuthenticated SiteUnauthenticated (Guest) Site
Login requiredYesNo
User contextNamed user with licenseGuest User profile
Data accessOWD + sharing + permissionsGuest sharing rules only (criteria-based)
Record creationYes (user owns records)Limited; records owned by default site owner
API accessYesDisabled by default
PersonalizationFull (user profile, preferences)None (anonymous)
Use caseCustomer portal, partner hubKnowledge base, marketing site, microsite

Guest User Data Exposure

Every piece of data visible to guest users is accessible to anyone on the internet. The CTA board will probe this aggressively. See Portal & Community Security for guest user sharing rules, profile lockdown, and best practices.

Multi-Site Strategy

An org can have up to 100 Experience Cloud sites. The decision between one site and multiple sites depends on user segmentation, branding, and data isolation needs.

When to Use Multiple Sites

ScenarioSingle SiteMultiple Sites
One audience, one brandYesOverkill
Multiple brands, shared dataPossible with audience targetingBetter — separate branding per site
Customers + PartnersPossible but complexRecommended — different license types, workflows
Multiple languages, one brandYes — use language selectorNot needed unless regulatory isolation required
Campaign / event micrositesNo — use Microsite templateYes — Microsite template per campaign
Regulatory data isolationNot possibleYes — separate guest user profiles, sharing
Different authentication needsComplexClean — SSO per site via [[02-security/identity-sso

Microsite Strategy

Microsites (LWR) are lightweight, unauthenticated sites designed for campaigns, events, and lead capture. They share the same org data but have independent branding and pages.

FeatureFull Experience SiteMicrosite (LWR)
AuthenticationAuthenticated or guestUnauthenticated only
License requiredYes (per user type)No (guest access)
CRM data accessFull (based on sharing)Lead capture via forms
CMS contentFull CMS integrationCMS content via channels
ComplexityMedium-HighLow
Typical lifespanPermanentTemporary (campaign duration)

Agentforce and Data Cloud Integration

Experience Cloud sites are a primary deployment surface for Agentforce AI agents and Data Cloud-powered personalization.

IntegrationCapabilityArchitecture
Agentforce Service AgentAI-powered conversational bot embedded in Experience Cloud sites; handles Tier-1/Tier-2 inquiries, deflects cases, escalates to humansConfigured via Agentforce Builder; deployed as Embedded Service component on LWR/Aura pages
Experience Builder AgentAI assistant within Experience Builder that generates and refines page content for authors (announced capability — verify current availability)Available in LWR sites; assists content creation, not end-user facing
Data Cloud personalizationUnified customer profiles drive personalized content, recommendations, and segmentation on site pagesData Cloud segments surface via CMS audience targeting and custom LWC
Agentforce Contact CenterUnified voice + digital channel AI agent for omnichannel serviceRoutes between Experience Cloud chat, voice, and messaging channels

CTA Relevance

For the CTA exam, understand that Agentforce agents on Experience Cloud sites use the same data access model as the site’s guest or authenticated user. Agent responses are constrained by the user’s sharing rules and permissions — agents cannot bypass the security model. This is a key architectural point when designing AI-assisted self-service.

CTA Scenario Patterns

Scenario 1: Partner Portal with Deal Registration

Situation: A manufacturer needs 500 channel partners to register deals, access marketing materials, and view co-branded collateral.

DecisionRecommendationRationale
TemplatePartner Central (LWR)Purpose-built for deal registration and partner enablement
LicensePartner CommunitySupports reporting, role hierarchy, opportunity access
SharingExternal OWD = Private; sharing rules by partner tierPartners must not see each other’s deals
CMSWorkspace per region; marketing collateral via CMS collectionsRegional content with centralized governance
AuthenticationSAML SSO to partner’s IdP via [[02-security/identity-ssoIdentity & SSO]]
AgentforceService Agent for partner FAQ and deal status inquiriesDeflects Tier-1 support from channel team

Scenario 2: Customer Self-Service with Knowledge Base

Situation: A SaaS company wants customers to search knowledge articles, create cases, and track case status — reducing support call volume by 40%.

DecisionRecommendationRationale
TemplateHelp Center (LWR)Optimized for knowledge search and case deflection
LicenseCustomer Community (high-volume)Low cost per user; HVCP sharing sets for case access
Guest accessPublic knowledge articles for SEO; login required for case creationDrives organic traffic; protects PII behind auth
CDNEnabled with Salesforce CDNSub-second page loads for guest knowledge browsing
SEOClean URLs, meta tags, sitemap enabledKnowledge articles indexed by search engines
SharingSharing Sets: Case.AccountId = Contact.AccountIdCustomers see only their account’s cases
AgentforceService Agent as first contact; escalation to human agentsAI handles common questions before case creation

Scenario 3: Multi-Brand Microsite Campaign

Situation: A retail company runs quarterly product launch campaigns across 3 brands, each needing a branded landing page with lead capture.

DecisionRecommendationRationale
TemplateMicrosite (LWR) per brand/campaignLightweight, independent branding, no login required
LicenseNone (unauthenticated)Guest access only — no per-user cost
CMSShared workspace with brand-specific channelsContent reuse across campaigns; brand isolation via channels
Data captureFlow-based forms writing to Lead objectNo guest user record ownership concerns
LifecycleDeploy per campaign; deactivate after campaign endsMicrosites are disposable by design

Key Gotchas

LWR Republish Requirement

Unlike Aura, LWR sites require republishing for any change to appear — including Salesforce’s own component updates. Build a publishing workflow and communicate publish schedules to content teams. Forgetting to republish is the most common LWR operational issue.

Site Limits

Each org supports up to 100 Experience Cloud sites. Each site consumes API limits, storage, and sharing calculations. Monitor site usage against org limits, especially with multiple microsites. Guest user API access (if enabled) shares the org’s API allocation.

Aura-to-LWR Migration

There is no automated migration path from Aura to LWR. All pages, components, themes, and custom code must be rebuilt. Budget 2-4x the effort of the original build. Do not underestimate migration complexity in a CTA scenario.

  • Portal & Community Security — external user licenses, sharing sets, guest user security, HVCP architecture
  • Identity & SSO — authentication for Experience Cloud sites (SAML, OAuth, social login, JIT provisioning)
  • Sharing Model — internal and external OWD, sharing rules that underpin portal data access
  • Field & Object Security — profiles and permission sets for external users
  • Decision Guides — portal architecture and license selection decision trees

Sources