Performance and Scalability

Salesforce is a multi-tenant platform — you fight for resources. Performance means staying under limits while delivering fast, scalable, predictable behavior.

Good general rules

  • Always bulkify

  • Minimize database trips via Selectors + UoW

  • Push heavy and retry-prone workloads async

  • Cache when the risk of stale data < cost of re-querying

  • Preserve transaction independence — avoid cascading failure chains

Last updated

Was this helpful?