Study FAQ
When should I use an Azure ML online endpoint or a batch endpoint?
Also asked as 2
- How do synchronous and batch inference differ in Azure Machine Learning?
- Which Azure ML endpoint fits an interactive request or a long-running scoring job?
Answer
Use managed online inference when the consumer needs a result during the request and the complete response path can meet its latency target. Use a batch endpoint when the consumer can submit work and collect results later, such as scoring a large set of stored files. An online request returns a response. Invoking a batch endpoint creates a job whose outputs become available separately.
Both endpoint types let the consumer use a stable invocation address while deployments define the runtime and artifact. Managed online endpoints can split ordinary requests across deployments. A batch endpoint uses its default deployment unless a caller selects a specific one, so switching the default changes where future default invocations go. For custom-trained models, choose from the consumer's payload, latency and completion requirements.
Microsoft Learn
Full explanation
AI-300: Choosing Online and Batch Inference
Study guide · AI-300
Read the full explanation