O'Reilly logo

Mastering Application Development with Force.com by Kevin J. Poorman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required