Batch inference versus real-time serving
There is a tendency to build interactive services for problems that do not need interactive answers. I would use the scheduling and processing model that matches the user's actual freshness requirement.
Behind the technology
Batch jobs process queued records on a schedule; online services respond within an interactive latency budget.
What excites me
Batching can improve accelerator utilization, while online serving enables immediate feedback.
Where we need caution
Batch results become stale and online services must absorb bursts or failures.
Put the idea to the test
Classify tasks by freshness requirements, then benchmark batch throughput and online tail latency using the same model. Add a fallback for missed schedules.
Keep learning
Google Cloud MLOps guidance ↗ · Further reading for this subject area; not a claim that the source endorses this editorial.
