← MLOps learning pathMLOps · Module 5 of 10
Model deployment patterns
Serve predictions in batch or real time.
📖 Key ideas
- Batch inference scores many records on a schedule.
- Online (real-time) inference serves predictions via an API.
- Streaming inference scores events as they arrive.
- Edge deployment runs on devices.
- Serving tools: FastAPI, BentoML, KServe, TorchServe, SageMaker endpoints.
💡 Real-life example: Batch inference is printing tomorrow's newspaper overnight; online inference is answering a phone call instantly.
Batch inferenceScoring data in bulk
Online inferenceReal-time API predictions
KServeModel serving on Kubernetes
LatencyTime to return a prediction