Introduction to MLflow Model Serving at Scale
Turn a Registered MLflow Model Into a Docker Image With One Command, Then Run Three Replicas of It on Kubernetes. (MLOPS: ABSOLUTE BEGINNERS TO PRO IN 100 DAYS - DAY 55)
By Sandip Das · · 5 min read

💡
Hey — It's Sandip Das 👋
In Day 54 we scored 10,000 rows from S3 in parallel chunks with Airflow. Batch covers tables, but online traffic still goes through our hand-written FastAPI app, and every model change means touching that code.
Today we let MLflow do the packaging:
In Day 54 we scored 10,000 rows from S3 in parallel chunks with Airflow. Batch covers tables, but online traffic still goes through our hand-written FastAPI app, and every model change means touching that code.
Today we let MLflow do the packaging:
mlflow models build-docker turns a registered model into a ready-to-serve image with a standard REST API, and we run three replicas of it on Kubernetes.📚 Key Learnings
- When MLflow's built-in serving is enough and when you still want a custom API
- How
mlflow models build-dockerbuilds an image from a registry URI - The MLflow scoring REST API:
/invocations,/pingand the four input formats - Why model signatures matter once the model is behind an API
- Hands-on: build, push and run the iris model as a 3-replica Kubernetes Dep
Read the full article on learnxops.com.
Topics: 100 Days of MLOps, MLOps, ML, Model Serving