A customer waiting for an answer and an analyst processing last night’s documents do not have the same timing requirement. Both may use a trained model, but the surrounding workflow changes what a suitable inference service looks like.
Google Cloud’s explanation of batch inference describes processing collected inputs together rather than responding to each request interactively. Online inference is typically organised around returning a prediction or response as an application needs it.
Begin with the deadline
For a nightly classification job, results ready before the next workday may be sufficient. For an interactive form, a user may need an answer during the same session. Neither pattern is automatically better; the required response time is part of the product’s purpose.
Ask when input data becomes available, how fresh the result must be and what happens if processing is delayed. A batch job can be perfectly suitable for a report while being unsuitable for a decision that must use the latest event immediately.
Consider an illustrative document-tagging process. Files arrive during the day, an overnight job assigns candidate tags, and a reviewer checks uncertain cases in the morning. The interface should show which files succeeded, which failed and which still need review, rather than presenting a partial batch as complete.
Plan the operational edges
Record the model version and input identity so results can be traced. Decide how retries avoid creating duplicate records and how a failed item is distinguished from a valid empty result. These requirements matter even when the model itself performs well.
Do not assume that batching always reduces total cost or that online serving always provides an adequate response time. Measure the actual service under representative conditions, including queueing and data preparation.
A useful design decision states the required deadline, acceptable data age and failure behaviour. Those details make the choice explainable to the people who will rely on the output.

