Salesforce Governor Limits and Allocations

When architecting a solution on Salesforce, one of the design considerations is related to limits and allocations. Because Salesforce is a multi-tenant architecture, Salesforce enforces limits on resources that users consume in order to ensure that one user’s workload doesn’t negatively affect other users. As a user of Salesforce, you want some level of guaranteed performance from the platform.

Limits and allocations are complicated because they come in different shapes and sizes. Here are some of the categories of Salesforce limits:

  • Apex governor limits

Also, there are limits based on the edition of Salesforce that you are running. For example:

  • Personal Edition

It is easy to see why there is no easy answer to the question “Will we run into any Salesforce limits in this solution design?” Some level of analysis must be done for each specific situation. Even after analysis, running a series of tests can confirm or deny a limit issue in your design.

To accelerate the analysis related to Salesforce limits and allocations, it’s best to document a set of common design questions to flesh out possible Salesforce limit situations. A standard list can help ensure higher quality solutions. These questions could include:

  1. What Salesforce Edition is being used?

Bring your developers and architects together to document this list of questions and keep iterating on it.

In summary, developing knowledge of Salesforce limits and allocations as well as creating a standard, documented way of analyzing a solution design will accelerate higher quality solutions. It will make testing more robust and you will run into fewer production issues.

In a follow-up blog, I will articulate common architectural design patterns that can help avoid running into Salesforce limits (eg leveraging Heroku, Mulesoft, etc.)

Helpful links below…

https://developer.salesforce.com/docs/atlas.en-us.salesforce_app_limits_cheatsheet.meta/salesforce_app_limits_cheatsheet/salesforce_app_limits_overview.htm

https://help.salesforce.com/s/articleView?id=000386730&type=1

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Brett Colbert

Brett Colbert is SVP of Engineering at Publicis Sapient. Previously, IT CTO at Salesforce. Previously at NetApp, Cisco, McAfee, Disney and Intuit. DYOR.