
Async Apex Types: Which One Should You Use?
Async Apex Types each solve a different problem, and picking the wrong one causes limit errors, lost jobs or code that is hard to…
Topic

Async Apex Types each solve a different problem, and picking the wrong one causes limit errors, lost jobs or code that is hard to…

Scheduled Apex runs an Apex class automatically at times you choose, such as every night at 2 AM or every Monday at 8:30. Nobody…

Batch Apex processes very large numbers of records by splitting them into small chunks and running each chunk in its own transaction. One transaction…

Queueable Apex is the modern way to run background work in Salesforce. You write a class that implements the Queueable interface, queue it with…

Apex Future Methods are the simplest way to run a piece of Apex in the background. You add the @future annotation to a static…

Asynchronous Apex is Apex that Salesforce runs later, in the background, instead of while the user waits. You use it when work is too…

Testing Async Apex means proving that code which runs later, such as Queueable jobs, Batch Apex, future methods and scheduled jobs, really does its…