Skip to main content
New tool CRON Expression Builder — preview next run times before you schedule Apex. Open the builder →

Asynchronous Apex articles

8 articles · Queueable, future, scheduled and batch work, and when each one fits.

Technical visualization of overcoming the Apex heap limit for complex native document generation processes.Apex

Beating 6MB Apex Heap Limit: Native Document Generation

An architecture that generates PDFs with embedded images and large record sets inside Apex governor limits. Binary data...

· 5 min read
Diagram illustrating the flow and use cases for different Asynchronous Apex types in Salesforce development.Apex

Asynchronous Apex in Salesforce - When to Use Each Type

Ever hit a CPU limit while writing a trigger? Asynchronous Apex moves the heavy work into the background so your users...

· 5 min read
A developer preparing for a Salesforce developer interview, focusing on practical coding and architecture questions.Interview Prep

Cracking the Salesforce Developer Interview - 2025 Guide

I have sat on both sides of the interview table, and definitions are never what decides it. Here is how to show you can...

· 5 min read
Diagram illustrating data flow for a Salesforce Remote Action call in a Visualforce context.Apex

Guide to Salesforce Remote Action and JavaScript Remoting

LWC is the new standard, but many of us still work with Visualforce. This post explains how Salesforce Remote Action...

· 5 min read
Diagram illustrating the error when a Batch Apex job attempts to call a future methodApex

Batch Apex future method: Why It Fails and How to Fix It

Ever hit that 'Future method cannot be called' error in the middle of a batch job? Salesforce blocks it on purpose, and...

· 4 min read
Diagram illustrating the process of making an asynchronous callout from an Apex trigger in SalesforceApex

How to make an Apex trigger callout in Salesforce

Ever tried making an API call from a trigger and hit a wall? Triggers are fast, APIs are slow, so the request has to...

· 5 min read
Diagram illustrating the difference between a Salesforce batch job stuck in queued status and a running job.Apex

Salesforce batch job queued: Is it stuck or just scheduled?

A batch job sitting in queued status is stressful to look at, but it usually doesn't mean your code is broken. Here is...

· 4 min read
Diagram illustrating the four essential Salesforce Design Patterns for cleaner Apex development workflowsApex

4 Essential Salesforce Design Patterns for Apex Developers

I've seen way too much spaghetti code in Apex that breaks the second someone touches it. These four design patterns are...

· 5 min read