Use real-time processing when the user needs an answer to continue the current interaction. Use a batch or queued workflow when many independent tasks can finish later and the business can tolerate that delay.
Start with a real service deadline
A live qualification interview and a nightly campaign-report draft have different timing needs. Ask when the output becomes useful, who is waiting and what happens if it arrives late. “Faster” is not a requirement until the business explains the cost of waiting.
OpenAI documents a Batch API, while other providers expose their own asynchronous options. Check supported models, completion windows, cancellation behavior and billing for the chosen service. Do not assume an ordinary background HTTP request has the same guarantees as a managed batch job.
Use explicit job states
A queued application should distinguish accepted, running, completed, partially completed, failed and cancelled work. The user needs to know whether a request was received and where the final result will appear. A successful upload is not proof that every item was processed.
Keep a stable identifier for each item. It should be possible to reconcile an output with its original input even when results arrive out of order. Record the source version and intended output contract with the job.
A worked campaign-report example
Imagine preparing reviewed narratives for 40 campaign accounts before a Monday meeting. Compute the metrics first, then enqueue one draft request per authorized account. The operator can review finished drafts while failed items remain visible for correction.
Do not make one model request responsible for every account unless the output can be reliably separated and validated. A partial response should not silently omit the final accounts or mix one customer's figures into another customer's narrative.
Separate retry from redoing the business action
A failed draft can often be generated again. Sending the same approved report twice is a different problem. Keep external delivery outside the generation retry loop and use an application-level record of completed actions.
If a batch item fails because of malformed input, fix the record rather than retrying it repeatedly. If the provider is temporarily unavailable, apply bounded retries and preserve a manual route for the deadline. Track attempts so costs remain understandable.
Choose with a complete comparison
- How long can the business wait?
- Can tasks be processed independently?
- What does partial completion mean?
- How are cancellation and duplicate delivery handled?
- Do the service's retention and access controls fit the data?
Compare total accepted-task cost and operator effort, not only advertised batch discounts. Interactive processing can be right even when it costs more, because the user is actively making a decision. Batch processing can be right when waiting is harmless and progress is clearly visible.
The strongest design may use both: a fast preview for the user, followed by a queued, reviewed artifact. Make that distinction explicit so the interface never presents a preliminary result as a completed operational commitment.
Researched and published 30 November 2026. Provider capabilities are attributed to official documentation; recommendations and worked examples are editorial analysis. No independent model benchmark or client outcome is claimed. Confirm current access, pricing and terms before implementation.
Build the useful version.
Discuss an AI workflow, knowledge assistant or digital-product brief with Jamil Darwish.
Start a conversation