9

Working with Queueable Apex

So far in this section on asynchronous processing in Apex, we have dealt with both future methods and Batch Apex, two different ways of processing data asynchronously with different use cases and benefits. In this chapter, we are going to discuss another asynchronous processing option that is somewhat of a hybrid of both – Queueable Apex.

We will discuss what Queueable Apex is and how it compares to both Batch Apex and future methods. This will help us define and understand use cases for Queueable Apex before we learn how to define a Queueable Apex implementation. After defining a Queueable Apex implementation, we will learn how to invoke a queueable job and how to chain jobs. We’ll finish this chapter by reviewing ...

Get Mastering Apex Programming - Second Edition 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.