# How do you make an asynchronous callout from a trigger (@future(callout=true) vs Queueable)?

**Topic:** Async Apex · **Difficulty:** Medium · **Asked at:** Deloitte, Salesforce, PwC · **Tags:** apex-trigger, trigger, callout, async

Read it on the site: https://www.forcechallenges.com/interview-questions/how-do-you-make-an-asynchronous-callout-from-a-trigger-future-callout-true-vs-queueable

## Answer

**@future(callout=true):** static void method, only primitive/collection-of-primitive parameters (pass Ids and re-query), no chaining, cannot be called from future/batch, no job Id returned.

**Queueable + Database.AllowsCallouts:** accepts SObjects/complex types, returns a job Id, supports chaining, can be monitored.

```apex
public class CalloutJob implements Queueable, Database.AllowsCallouts {
    Set<Id> ids;
    public CalloutJob(Set<Id> ids) { this.ids = ids; }
    public void execute(QueueableContext ctx) {
        // query by ids, make HTTP callout, update results
    }
}
// in trigger handler
System.enqueueJob(new CalloutJob(accountIds));
```
Prefer Queueable for new work.

---
Source: ForceChallenges · last updated 2026-10-21
