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 how we test our Queueable Apex classes.
In this chapter, we’ll cover the following topics:
- What is Queueable Apex?
- When to use Queueable Apex
- Defining Queueable Apex implementations
- Invoking Queueable...