Salesforce Orgs Must Design Resilient Async Architecture to Avoid Peak Season Disasters
A Salesforce org that encounters a critical production incident during peak season due to exceeding asynchronous Apex execution limits must take immediate action. The first step is to restore the environment by temporarily increasing the limit for async executions.
The org then shifts its priority to triaging the incident, investigating and diagnosing the root causes, and addressing them. One of the key steps in this process is reducing unnecessary asynchronous consumption, which can be achieved by analyzing how resources are being consumed and reviewing logs for async executions.
The Async Framework, a set of architectural principles, can help in designing a resilient async architecture that scales with demand. The framework consists of three core components: a decision guide, a centralized limits monitor, and process-specific routing rules. It emerged from a series of decisions about resource consumption, execution context, platform capacity, workload characteristics, and operational risk.