Salesforce Apex Async Patterns
Implements and optimizes asynchronous processing in Salesforce using @future, Queueable, Batch, and Schedulable Apex.
This skill provides comprehensive guidance for architecting and implementing asynchronous Apex patterns to handle long-running processes, large data volumes, and external integrations. It helps developers choose the most efficient pattern based on specific requirements—such as bypassing governor limits, chaining jobs, or handling platform events—while ensuring compliance with Salesforce execution constraints and best practices for testing and error handling.
主要功能
01Decision framework for selecting the optimal async pattern for specific use cases
02Guidance on chaining Queueable jobs and managing Batch Apex state
03Implementation patterns for @future, Queueable, Batch, and Schedulable Apex
049 GitHub stars
05Integration patterns for Platform Events to decouple publishers and subscribers
06Standardized testing procedures using Test.startTest() and Test.stopTest() boundaries
使用场景
01Processing millions of records that exceed synchronous transaction limits
02Executing HTTP callouts from triggers or restricted contexts using @future or Queueable
03Scheduling recurring maintenance or reporting tasks via cron-based Schedulable jobs