Differences Between Future and Queueable Apex
Future Method Queueable Apex 1. Future will never use to work on SObjects or object types. 2. When using the future method we cannot monitor the jobs which are in process. 3. The future method cannot be called inside the future or batch class. 4. The future method will never be queued. 5 . It is annotation based so we can use the same apex class to write the future method. Syntax: @future 6 . Future method supports only primitive datatypes. 1. Queueable Jobs can contain the member variable as SObjects or custom Apex Types. 2. When using queueable jobs it will make the AsyncApexJob which we can monitor like Scheduled jobs. 3. Queueable Apex can be called from the future and batch class. 4. Using Queueable Apex will chain up to queueable jobs and in Developer Edition it is only 5 Jobs. 5. It is a class which implements’ queueable interface. Syntax: public class CLASS_NAME implements Queueable{}. 6. Queueable supports both primit...