Chapter 3. Asynchronous Apex for Fun and Profit

In this chapter, we will focus on processing large amounts of data. We'll talk about the batchable interface as well as its options and how we can schedule batch jobs using a corresponding schedulable interface. We will talk about the @future annotation for methods and the new Queueable interface. All told we will cover:

  • Batchable
  • Schedulable
  • Queueable
  • The @future annotation

Using batchable classes

Collectively referred to as asynchronous code batchable, queueable, and the @future methods contract a tradeoff with the Salesforce1 platform. In exchange for running the code asynchronously, meaning we have no control over when it's actually executed, the platform relaxes certain governor limitations. For instance, ...

Get Mastering Application Development with Force.com now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.