Run AI processing in batches when nobody waits on the output. Run it on each request when a person is watching for the answer. Three questions usually settle the choice: how long the user will wait, what a failed call costs, and how a delayed result affects the work.
Start by listing who is waiting for each result
Begin with the output rather than the model. For each AI task, write down what the output feeds and who reads it. A person who types a question and waits for a reply needs the result within seconds, or at least while the context is still in their head. A nightly summary, a tagging job across a backlog of support tickets or a classification run that feeds next morning’s report has nobody standing at a screen.
The test is narrow. A chat tool that drafts a reply during a support call is live work. The same model run over last month’s call recordings to build coaching notes is batch work. The prompt can be identical. The difference is the clock, and the reader sets the clock.
Ask four questions about each task:
- Who reads the output, and when?
- What does the reader do while waiting: keep working, or stop?
- What happens if the result arrives an hour late?
- What happens if the result does not arrive?
Compare cost, failure handling and user expectations
Three factors drive the decision. Cost, failure handling and user expectations pull in different directions, so score each task on all three before you choose.
- Cost. Live calls hold capacity for the moment a person needs an answer, so they usually have to be sized for peak load. Batch work can run in quiet hours and spread across a window, which often lets you run it on less capacity. Check the pricing terms in your own agreement and confirm the actual per-item cost before you count on a saving.
- Failure handling. A failed live call appears as an error on a screen someone is watching, and the person can retry or rephrase. A failed batch item can sit unnoticed until the morning report is wrong. Batch work needs a record of what succeeded, what failed and why, plus a way to rerun just the failed items.
- User expectations. People accept a short wait when they can see progress. They do not accept silence. A live request that runs for a while with a visible progress indicator may feel fine, while the same wait on a blank screen feels broken. Batch results also need a named owner who answers when a result looks wrong.
Score failure handling with the same weight as cost. A cheap batch job that quietly drops some of its items can cost more than the live call it replaced, because someone has to find and fix the gap.
Measuring the return on either mode needs the same baseline as any other AI spend. The method is set out in how to measure value from AI work.
Build the batch path step by step
Batch work is harder to debug than live work because feedback arrives late. Build the path in this order.
- Define the unit of work. Pick one item, such as a ticket, a document or a record, and make each item processable on its own. If one item depends on another item’s result, the batch can stall in ways the live path would not.
- Give each item a stable identifier. Store the input with a key that ties the output back to it. Without this, a rerun can duplicate results or overwrite good ones.
- Write results to a store, not a screen. Keep outputs in a table or queue with a status field such as queued, running, succeeded or failed. Downstream readers should filter on that status rather than guess.
- Set the schedule from the consumer’s clock. If the report is read at 8 a.m., the batch should finish with margin for a rerun before then. Work backward from the reader’s deadline.
- Plan the rerun. Rerunning failed or missing items is the normal path. A full-window rerun should be rare and deliberate.
Test the path on a small slice first. Pick a window with known inputs, run it, and compare the stored results with what a person would have accepted. Count the failed items and read a sample of them before you widen the window.
Decide when a live request earns its cost
Live processing is the right choice when a person is in the loop and the answer changes what they do next. Typical cases include drafting a reply during a conversation, suggesting the next field while someone completes a form, or answering a question the user has just asked. In each case, a delay breaks the flow of the work.
Live processing needs its own limits. Set a timeout that matches how long the user will tolerate. Decide what the interface shows when the timeout passes: a retry option, a fallback message, or a note that the request has been queued for later. Do not let a live call hang with no exit.
Plan failure handling for both modes
Each mode fails differently, so the handling differs too.
Handle live failures in the moment
Return a clear error to the user, log the input reference and the error category, and allow one retry for transient faults. Repeated retries on a live path add waiting time without fixing the cause, so stop after one or two attempts and show the user what happened.
Handle batch items after the run
Record which items failed and why, keep them out of the success set, and retry them in a separate pass with a cap on attempts. An item that fails the same way several times points to bad input or a design gap, so route it to a person instead of letting it cycle through the queue.
Make the job safe to rerun. Skip items that already have a successful result for the same input version. If an input changes, mark the stored result as stale rather than silently replacing it. This keeps the output consistent when a scheduler triggers a job twice.
Alert on the failure rate, not on each failure. One failed item in a nightly run is ordinary. A sudden jump usually points to a changed input format, an expired credential or a capacity limit, and that should reach a person the same day.
Alert routing and change control belong in the wider set described in AI governance and risk controls.
Check the choice before you roll it out
Before a use case moves to production, write the decision down in one short record. Include the task, the reader, the processing mode and the reason. A record like this makes the choice reviewable when volume grows or the team changes.
The record should list:
- The named reader and the time they need the output.
- The acceptable delay for each item, in minutes or hours.
- The cost per item in each mode, based on your own agreement.
- The failure path for each mode, including who gets alerted.
- The signal that would make you switch modes.
Run a trial with a small group of real users in the live path. Log how long they wait and what they do during the wait. Users often tolerate more delay than the design assumed, or less. The trial shows which, and the number goes into the record.
Set the stop rule for the trial before it starts, using the approach in stop criteria for an AI pilot.
Check the batch path against the reader’s deadline. Measure the finish time over several runs, not one. A job that finishes at 6:40 on a quiet night can finish after 8 a.m. in a busy month, so the record should show the margin.
Teams that move work from live to batch often need to brief the people who used to get instant answers, a task covered in AI adoption and change enablement.
For help planning this work, see AI and machine learning services.
Questions about mixing modes, status and review
Can one workflow use both batch and live processing?
Yes, and some workloads end up that way. A live step can capture the request and return an acknowledgment, while a batch step handles the heavier analysis later. Keep the handoff explicit, with a stored record that links the two, so neither side has to guess what the other did.
What should a user see while a batch job is still running?
Show the state rather than a promise. A status such as queued, in progress or complete, with the time of the last update, tells the user where things stand. Avoid giving a completion time you cannot stand behind.
Who should approve the processing mode for a new use case?
The person who owns the outcome should approve the mode, with input from whoever runs the system and whoever carries the failure risk. In a small team, one person may hold both roles, but the approval should still be written down.
How often should the processing mode be reviewed?
Review it when volume, user behavior or the reader’s deadline changes, and also on a fixed schedule. Compare the wait times users report and the failure log with the record you wrote at launch.
What should happen when a batch run finishes but the output looks wrong?
Treat it as a quality problem, not a scheduling problem. Pull a sample of the affected items, compare them with their inputs, and decide whether the prompt, the input data or the expected format is at fault. Mark the affected results as under review so downstream readers do not act on them, and rerun once the cause is fixed.
More in this section
- Design an AI operating model around business ownership, data, engineering, security, human oversight, support, change, and evidence.
- How should usage limits be set for an AI feature so one team cannot crowd out others?
- Who signs off that an AI project is complete?
- What should senior leaders understand about AI before approving a program?
- What signs show an organization is not ready for its first AI tool?