Salesforce Architecture

Salesforce makes it remarkably easy to build things.

A new object here. A flow there. A few custom fields for a new team. Within a few years, many organizations end up with an org that does a little bit of everything, and that nobody fully understands.

I have seen both sides: Salesforce orgs that feel clean and effortless after ten years, and orgs where every release is a nervous event. The difference is almost never the platform. It is the architecture.

Why Salesforce Needs Architecture

Salesforce is a platform, not just an application. It is multi-tenant, metadata-driven and governed by limits that do not exist in a traditional custom-built system. That brings huge speed, but also specific design responsibilities.

Diagram of key Salesforce architecture areas: org strategy, data model, security, automation, integration, AI and data, governance
The main areas a Salesforce architect has to get right

The Key Areas

Org strategy

Should the organization use one org or several? A single org gives a unified view of the customer and simpler integration. Multiple orgs can make sense for very different businesses, regulatory separation or acquisitions. Changing this later is very expensive, so it deserves careful thought.

Data model

Use standard objects wherever they fit. Accounts, Contacts, Opportunities and Cases come with years of built-in functionality. Custom objects are powerful, but every one adds long-term cost. Plan early for large data volumes, because performance and sharing behave differently at scale.

Security and sharing

The sharing model, profiles, permission sets and permission set groups determine who sees what. Designing this well from the start is far easier than untangling it later. Favor permission sets over complex profile structures.

Automation

Salesforce now recommends Flow as the main declarative automation tool, with Apex where logic is complex or performance-critical. The architectural rule I care about most is consistency: agree on one pattern per object, so automation does not collide in unexpected ways.

Integration

Salesforce rarely lives alone. Choose the right integration style for each case: REST and SOAP APIs, Bulk API for large volumes, Platform Events and Change Data Capture for event-driven flows, and middleware such as MuleSoft when complexity grows.

AI and data

With Agentforce and Data 360, Salesforce is increasingly an AI and data platform. Architects now need to consider which data agents can access, which actions they can take, and how trust and governance are maintained.

Governance and DevOps

Source control, automated testing, environment strategy and a clear release process separate mature Salesforce teams from struggling ones. So does actively managing technical debt.

Respect the Limits

Governor limits exist because Salesforce is a shared platform. They are not obstacles to work around. They are design constraints, just like memory or latency. Bulkify code, avoid unnecessary automation in loops, and design integrations with API limits in mind.

Common Mistakes

Final Thought

Salesforce gives organizations enormous speed.

Good architecture is what makes sure that speed still exists five years later, instead of being slowly eaten by complexity.