Salesforce Architecture Explained: From Beginner to Solution Architect
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.
Five Stages from Beginner to Architect
Each stage adds a new kind of question. The sections below follow the same order.
- Stage 1Understand the platformMultitenancy, metadata, releases. "Why does Salesforce work this way?"
- Stage 2Model data & accessObjects, relationships, the sharing model. "Who sees what?"
- Stage 3Build logic in limitsFlow vs Apex, bulkification, transactions. "Will it survive 200 records?"
- Stage 4Connect & scaleIntegration patterns, large data volumes, ALM. "Will it survive year three?"
- 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.
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
];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:
| Pattern | What happens | Typical use |
|---|---|---|
| Request and Reply | Salesforce calls out and waits for the answer | Credit check before saving an order |
| Fire and Forget | Salesforce sends a message and doesn't wait for the process to finish | Notify ERP that an opportunity closed |
| Batch Data Synchronization | Bulk updates in one or both directions, on a schedule | Nightly product and price sync |
| Remote Call-In | An external system creates, reads, updates or deletes Salesforce data | Website creates leads through the API |
| UI Update Based on Data Changes | The UI refreshes when data changes, without a reload | Live case status on a console |
| Data Virtualization | Data is shown in Salesforce but stays in the source system | Order 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.
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:
| Sandbox | Contains | Refresh interval | Best for |
|---|---|---|---|
| Developer | Metadata only | 1 day | Individual build and unit tests |
| Developer Pro | Metadata, more storage | 1 day | Bigger test data sets, team build |
| Partial Copy | Metadata + a sample of data from a sandbox template | 5 days | QA, integration testing, UAT |
| Full Copy | Metadata + all production data | 29 days | Staging, 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.
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.
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
| Layer | Beginner asks | Architect asks |
|---|---|---|
| Platform | Why is there a limit? | How does my design stay inside shared limits as it grows? |
| Data | Which field type do I pick? | Standard or custom? Master-detail or lookup? Where will skew appear? |
| Security | Why can't this user see the record? | What should the most restricted user see, and what opens access from there? |
| Logic | Flow or Apex? | What runs on save, in what order, and does it work for 200 records? |
| Integration | Which API do I call? | Sync or async? What happens on failure or a duplicate message? |
| Scale | Why is this report slow? | What's our archiving plan, and are our queries selective? |
| Delivery | How do I move this to production? | What is the source of truth, and how is every change tested? |
| Agents | What can the agent do? | Which user does it run as, what data grounds it, and how is it governed? |
Official Resources
Straight from Salesforce: the docs this article is based on.
Trailhead
- Understand the Salesforce Architecture Platform Basics · multitenancy & metadata
- Control Access to Records Data Security
- Design Your Data Model Large Data Volumes · data skew
- Evaluate an Integration Pattern Application Integration Patterns
- Build Well-Architected Solutions Salesforce Well-Architected
- Build Your Architect Career on Salesforce Trail · the architect role in the agentic era
Developer Docs
- Multitenancy and Metadata Overview Best Practices for Large Data Volumes
- Execution Governors and Limits Apex Developer Guide
- Tips and Hints for Sharing Data Sharing cheat sheet
- Data Access in Salesforce Record Access Under the Hood
- Pattern Selection Guide Integration Patterns and Practices
- Data 360 Integrations Data 360 Integration Guide
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.
All information in this article was collected from publicly available resources, including official Salesforce documentation.