Multi-Tenant Considerations Beyond Governor Limits
By the end of this lesson, you'll be able to:
- Explain what multi-tenancy means on the Salesforce platform
- Identify platform-wide constraints that exist beyond a single transaction's governor limits
- Design with the whole org's shared resources in mind, not just one transaction
Prerequisites: "External Objects and Salesforce Connect (Overview)"
Beyond one transaction's limits
Module 25 covered governor limits scoped to a single transaction: 100 SOQL queries, 10,000 DML rows, and so on. Multi-tenancy introduces constraints that operate at a broader level — API request limits per 24-hour period across an entire org, concurrent Apex transaction limits shared across every user working in the org at once, and platform event delivery limits shared org-wide.
A realistic scenario: concurrent long-running transactions
Module 42's nightly reconciliation batch job (RecalculateBalancesBatch) processing many accounts, if it somehow ran alongside several other long-running batch or synchronous transactions in the same org, could contend for the org's shared concurrent-transaction limit — a constraint that has nothing to do with how well any single transaction was written, and everything to do with what else is running in the org at the same moment.
Designing with the whole org in mind
This is why Module 42's nightly reconciliation was deliberately scheduled for a low-traffic overnight window (2:00 AM) — not just to avoid affecting real-time users, but to reduce the chance of contending with other scheduled or batch processes for the org's shared, multi-tenant resources. Architecture decisions at this level require thinking about the org as a shared environment, not just optimizing one feature in isolation.
Exercise
As a comment, explain why scheduling Module 42's nightly reconciliation batch for 2:00 AM was a multi-tenancy-aware decision, not just a real-time-user-aware one.
Show hint
Think about what else might be competing for the org's shared concurrent-transaction limit.
Multi-Tenant Considerations Beyond Governor Limits Quiz
My Notes
Log in to keep private notes on this lesson.
Questions about this lesson
No questions yet — be the first to ask.
Log in to ask a question about this lesson.
Summary
Salesforce is a multi-tenant platform — many different organizations share the same underlying infrastructure — which means some real constraints exist at a level broader than the per-transaction governor limits covered back in Module 25.