NexBlazers Logo
NexBlazers Learn • Build • Grow
Architecture & Apex

Salesforce Architecture Explained: From Beginner to Solution Architect

Written by NexBlazers Architecture Team November 24, 2026 14 min read

Most people learn Salesforce one feature at a time: a custom field here, a Flow there, a trigger when the Flow gets too big. That works until the org has 400 fields on Account, three automation tools fighting over the same record, and an integration that fails every Monday morning. At that point the problem isn't a missing feature. It's missing architecture.

This guide walks the whole platform from the bottom up, in the order an architect thinks about it: the shared infrastructure, the metadata engine, the data model, the security model, the logic layer, integration, scale and delivery. For each layer you'll get the beginner view, the questions an architect asks instead, and the traps that show up in real orgs. It ends with the certification and skills path from your first admin badge to the Solution Architect role.

The platform, layer by layer (top to bottom)
7
Experiences & agentsLightning apps, Experience Cloud sites, mobile, Agentforce
6
IntegrationREST, SOAP, Bulk and Pub/Sub APIs, events, MuleSoft
5
LogicFlow, Apex, the order of execution, governor limits
4
Security & sharingOrg, object, field and record access
3
DataStandard and custom objects, relationships, Data 360
2
Metadata engineEvery customization stored as metadata, separate from the core services
1
Multitenant infrastructureShared, Salesforce-managed, running on Hyperforce
The journey

Five Stages from Beginner to Architect

Each stage adds a new kind of question. The sections below follow the same order.

  1. Stage 1Understand the platformMultitenancy, metadata, releases. "Why does Salesforce work this way?"
  2. Stage 2Model data & accessObjects, relationships, the sharing model. "Who sees what?"
  3. Stage 3Build logic in limitsFlow vs Apex, bulkification, transactions. "Will it survive 200 records?"
  4. Stage 4Connect & scaleIntegration patterns, large data volumes, ALM. "Will it survive year three?"
  5. Stage 5Design solutionsTrade-offs, multi-cloud, agents, governance. "Should we build it at all?"

1. Multitenancy: You Rent an Apartment, Not a House

Salesforce runs every customer on shared infrastructure. Trailhead's Understand the Salesforce Architecture unit uses the picture of an apartment building: your org is one apartment, and you share the plumbing, wiring and lifts with your neighbours. Salesforce's own docs describe multitenancy as serving one application to many organizations from a single hardware and software stack.

That one fact explains a lot of behaviour that confuses beginners. Governor limits exist because the building is shared. The Apex runtime enforces them strictly so that one tenant's runaway code can't take resources from everyone else. You also never patch servers or pick a database version: Salesforce upgrades the whole building three times a year, and your org moves with it.

Since 2020 the building itself has been changing. Hyperforce moves Salesforce onto public cloud infrastructure from the major providers, which lets customers keep data in specific regions for residency and compliance needs. For an architect, that turns "where does our data physically live?" into a design question, not just a contract footnote.

2. Metadata: Your Org Is a Description, Not an Install

In Salesforce, everything you customize (objects, fields, layouts, Flows, Apex classes, permission sets) is stored as metadata. The platform keeps that metadata layer separate from its core services, which is why upgrades don't break your customizations, and why a new field is live the moment you save it. The Architecture Center's Platform Multitenant Architecture fundamental explains how the platform stores this metadata in shared tables for all tenants, and uses it to give each org what behaves like its own schema.

The practical consequence: your org is a set of files you can version, diff and deploy. Once you see metadata that way, source control, sandboxes and deployment pipelines stop feeling like developer overhead and start feeling like the obvious way to change a system other people depend on.

Architecture Note: "Clicks, not code" is not the same as "no architecture". A Flow is metadata with the same blast radius as an Apex class. Give declarative work the same review, testing and deployment discipline you give code.

3. The Data Model: Start Standard, Extend Carefully

Beginners see objects as tables and fields as columns, which is a fine start. The architect's first question is different: "Does a standard object already model this?" Account, Contact, Opportunity, Case and the rest come with built-in behaviour (implicit sharing, reports, mobile, AI features and industry extensions) that a custom object has to rebuild from scratch.

Relationships are where data models age well or badly:

  • Master-detail ties the child's life to the parent: the child inherits the parent's sharing and owner, is deleted with it, and supports roll-up summary fields.
  • Lookup is a looser link. The child has its own owner and sharing, and usually survives if the parent is deleted.
  • Junction objects (two master-detail relationships) model many-to-many relationships, like candidates applying to many positions.
  • External objects show data that stays in another system, so you don't copy it into Salesforce just to display it.

Then think about volume early. Trailhead's Design Your Data Model unit names three kinds of data skew: account data skew (too many children on one parent), ownership skew (one user owns a huge number of records) and lookup skew (huge numbers of records pointing at one lookup target). The guidance is to keep a parent below about 10,000 child records, because skew turns simple saves into record-lock errors and slow sharing recalculation.

Data no longer lives only in core CRM objects, either. Data 360 (the name Data Cloud has carried since October 14, 2025) stores data in a lakehouse, harmonizes it with CRM data, and can use zero-copy federation to read from platforms such as Snowflake and Databricks without duplicating it. A modern data architecture decision is often "CRM object, Data 360, or leave it where it is?"

4. The Security Model: Lock It Down, Then Open It Up

Salesforce controls access at four levels: the org (who can log in, from where and when), objects, fields, and records. The first three come from profiles, permission sets and permission set groups. Record access, which Salesforce calls sharing, is the part architects spend the most time on.

The core rule from the Control Access to Records unit: set org-wide defaults to what the most restricted user should see, then open access with the role hierarchy, sharing rules and manual sharing. Sharing only ever adds access. You can't use a sharing rule to take away what the org-wide default already grants, and none of it can exceed the user's object permissions.

Two things beginners miss. First, the security model applies at the API level too, so an integration user sees only what its permissions allow. Second, Apex doesn't respect it automatically. Classes declared with sharing enforce record access, and user-mode queries also enforce object and field permissions:

// Respects the running user's object, field and record access
List<Opportunity> opps = [
    SELECT Id, Name, Amount
    FROM Opportunity
    WHERE StageName = 'Prospecting'
    WITH USER_MODE
];
Architecture Note: Design the role hierarchy around data access, not the org chart. Trailhead's scalability guidance suggests keeping it under 10 levels of branches. And if one integration or "Unassigned" user must own a very large number of records, keep that user out of the role hierarchy, or at the top of its own branch, to avoid ownership-skew recalculations.

5. The Logic Layer: Flow, Apex and the Transaction

The beginner question is "Flow or Apex?" The architect question is "What happens to this record, in what order, inside one transaction, at 200 records at a time?" A save runs before-save Flows, before triggers, validation and duplicate rules, after triggers, assignment and escalation rules, after-save Flows and roll-up summaries, in a fixed sequence. If you haven't yet, step through it in our Order of Execution article.

Everything in that sequence shares one budget. The Execution Governors and Limits are mostly per transaction: for example, 100 SOQL queries in synchronous Apex and 200 in asynchronous Apex. When code exceeds a limit, the runtime throws an exception that can't be caught, and the whole transaction rolls back. The fix is almost always the same pattern: bulkify. Query and write once per batch, never once per record.

Breaks at scale: a query inside the loop

trigger ContactTrigger on Contact (before insert) {
    for (Contact c : Trigger.new) {
        // One query per record: 200 records = 200 queries = limit exception
        Account a = [SELECT Id, Industry FROM Account WHERE Id = :c.AccountId];
        c.Description = a.Industry;
    }
}

Bulk-safe: one query for the whole batch

trigger ContactTrigger on Contact (before insert) {
    Set<Id> accountIds = new Set<Id>();
    for (Contact c : Trigger.new) {
        if (c.AccountId != null) accountIds.add(c.AccountId);
    }
    Map<Id, Account> accounts = new Map<Id, Account>(
        [SELECT Id, Industry FROM Account WHERE Id IN :accountIds]
    );
    for (Contact c : Trigger.new) {
        Account a = accounts.get(c.AccountId);
        if (a != null) c.Description = a.Industry;
    }
}

The first version works perfectly when someone saves one contact in the UI, then fails the first time a data load sends 200 contacts in one trigger batch. The second version runs one query no matter how many records arrive. Note that the Apex Developer Guide also lists elastic limits for asynchronous Apex jobs as a beta, so check current release notes before you rely on any number in a design document.

A healthy logic layer follows a few rules: one entry point per object (one trigger, or a clearly owned set of record-triggered Flows), before-save automation for same-record field updates, asynchronous processing (Queueable, Batch, platform events) for heavy or slow work, and clear ownership between admins and developers so two tools never fight over the same field.

6. Integration: Pick the Pattern Before the Tool

Almost no Salesforce org stands alone. Salesforce's Integration Patterns and Practices guide gives you the vocabulary, sorting each pattern by type (process, data or virtual), timing (synchronous or asynchronous) and direction:

PatternWhat happensTypical use
Request and ReplySalesforce calls out and waits for the answerCredit check before saving an order
Fire and ForgetSalesforce sends a message and doesn't wait for the process to finishNotify ERP that an opportunity closed
Batch Data SynchronizationBulk updates in one or both directions, on a scheduleNightly product and price sync
Remote Call-InAn external system creates, reads, updates or deletes Salesforce dataWebsite creates leads through the API
UI Update Based on Data ChangesThe UI refreshes when data changes, without a reloadLive case status on a console
Data VirtualizationData is shown in Salesforce but stays in the source systemOrder history from ERP via external objects

Choose the pattern from the business need (does the user have to wait? how many records? what if the other system is down?) and only then pick the tool: Apex callouts, External Services in Flow, platform events or Change Data Capture, MuleSoft, or Data 360 connectors. For event-driven designs, our event channel guide compares the options in depth.

Architecture Note: Synchronous callouts from the UI are the most fragile pattern. Long-running synchronous requests also count against an org-wide concurrent limit, so a slow partner system can block your own users. Design every integration for retries and idempotency: assume each message may arrive twice, or not at all.

7. Scale: Design for Year Three, Not Go-Live

Large data volumes don't arrive on day one. They arrive two years later, when list views get slow, sandbox refreshes take forever and a report times out during the board meeting. The scalability guidance on Trailhead recommends an archiving strategy from the start, plus tools such as custom indexes, skinny tables and data virtualization where they fit.

Architect-level habits for scale: write selective queries on indexed fields, avoid skewed owners and parents, decide what leaves the org (and when) before it fills up, and test performance with realistic volumes in a Full Copy sandbox instead of trusting a near-empty developer org.

8. Delivery: Environments and Application Lifecycle

Architecture that can't be shipped safely is a diagram, not a system. Salesforce offers four sandbox types, and choosing the right one for each stage is a design decision:

SandboxContainsRefresh intervalBest for
DeveloperMetadata only1 dayIndividual build and unit tests
Developer ProMetadata, more storage1 dayBigger test data sets, team build
Partial CopyMetadata + a sample of data from a sandbox template5 daysQA, integration testing, UAT
Full CopyMetadata + all production data29 daysStaging, performance and load testing

On top of environments sits the delivery model: source control as the source of truth, scratch orgs or developer sandboxes for building, a pipeline that runs tests on every change, and, for larger programs, unlocked packages that split the org into modules owned by different teams. If sandboxes hold real customer data, plan data masking too.

9. Thinking Like an Architect: Well-Architected and Trade-offs

Knowing every layer doesn't make you an architect. Choosing between good options, and explaining the trade-off, does. Salesforce's framework for this is Salesforce Well-Architected.

The framework changed recently, so check which version a course or blog is using. For years it was organized around three ideas: Trusted, Easy and Adaptable. In September 2026 Salesforce published an expanded version with five pillars: Trust, Reliability, Operational Excellence, Resource and Cost Optimization, and Fairness. Each pillar now has an "Agentic Enterprise" lens. Salesforce says the earlier guidance is still preserved inside the new framework, and the new version is designed to make trade-offs visible, such as reliability versus cost, or tighter controls versus added complexity.

The agentic lens matters for anyone designing with Agentforce. Salesforce's position is that agents don't get a separate rulebook: an agent has to meet the same security, reliability and governance standards as any other part of the solution. In practice, every layer in this guide applies to agents too. An agent's actions run as a user and respect that user's sharing model. Its Flows and Apex actions live inside the same governor limits. Its grounding data comes from the same data model, and its changes ship through the same pipeline.

Day to day, the shift from senior builder to architect looks like this:

  • You write down decisions (an architecture decision record) with the options you rejected and why.
  • You ask about non-functional requirements (volume, availability, data residency, audit) before anyone builds anything.
  • You look for what the platform already does before designing something custom, including AppExchange and other Salesforce clouds.
  • You draw the system so non-technical stakeholders can follow it, then defend it in front of technical ones.
The credential path

From First Badge to Solution Architect

"Solution Architect" is a job role, not one exam. The official architect certifications build up to it like this.

Application Architect

On-platform design: data model, role hierarchy and sharing.

  • Platform App Builder
  • Platform Developer
  • Platform Data Architect
  • Platform Sharing and Visibility Architect

System Architect

Off-platform systems: integration, identity, governance and deployment.

  • Platform Developer
  • Platform Integration Architect
  • Platform Identity and Access Management Architect
  • Platform Development Lifecycle and Deployment Architect

Certified Technical Architect (CTA): the top of the path. It builds on both the Application Architect and System Architect credentials, and ends with a review board where you design and defend a full solution live.

Both composite credentials are granted automatically once you pass their four prerequisites, and Platform Developer counts toward both. A realistic order for most people: Platform Administrator → Platform App Builder → Platform Developer, then the domain exams that match your project work. Sharing and Visibility and Data Architect pair well with data-heavy implementations; Integration and Identity pair with multi-system ones.

Release note (2025–2027): Certification names have changed twice recently. In July 2025 many gained a "Platform" prefix (Administrator became Platform Administrator, Platform Developer I became Platform Developer). On July 24, 2026, 16 more were renamed, mostly to add "Agentforce". Salesforce is also retiring 24 certifications on February 1, 2027, including B2B Solution Architect. The core architect path above, up to CTA, stays. Check the architect credentials page before you book an exam.

Certifications prove knowledge. The role is earned through project scars: a sharing model you had to redesign, an integration you had to make idempotent, a data migration that taught you about skew. Ask to own the design document on your next project, even a small one. That's where the jump from builder to architect really happens.

Cheat Sheet: Beginner Question vs Architect Question

LayerBeginner asksArchitect asks
PlatformWhy is there a limit?How does my design stay inside shared limits as it grows?
DataWhich field type do I pick?Standard or custom? Master-detail or lookup? Where will skew appear?
SecurityWhy can't this user see the record?What should the most restricted user see, and what opens access from there?
LogicFlow or Apex?What runs on save, in what order, and does it work for 200 records?
IntegrationWhich API do I call?Sync or async? What happens on failure or a duplicate message?
ScaleWhy is this report slow?What's our archiving plan, and are our queries selective?
DeliveryHow do I move this to production?What is the source of truth, and how is every change tested?
AgentsWhat can the agent do?Which user does it run as, what data grounds it, and how is it governed?
Keep learning

Official Resources

Straight from Salesforce: the docs this article is based on.

Planning your path to Salesforce architect, or reviewing an org that's outgrown its design?

Book a session with our architects for a design review or a personal certification roadmap.

Book Architecture Session

All information in this article was collected from publicly available resources, including official Salesforce documentation.