Chapter 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 to then define and understand use cases for Queueable Apex before we see how we define a Queueable Apex implementation. After defining a Queueable Apex implementation, we will see how to invoke a queueable job and how to chain jobs. We'll then finish the chapter by reviewing how we test our Queueable Apex classes.
In this chapter, we'll cover the following topics:
- What Queueable Apex is
- When to use Queueable Apex
- Defining Queueable Apex implementations
- Invoking...