ML Platform: Model & Feature Stores
ML Engineer path · lesson 78 of 80A DevOps engineer is paged and there are twenty data scientists. Rule out the four causes she cannot distinguish from the weights alone, click through the eight artifacts a model store should hold, separate the three unrelated problems called a feature store, and run the build-versus-buy staffing math.
Key insight
The open problem in this layer is ensuring model quality before deployment. Which turns into a concrete purchasing criterion: check whether the service makes shadow deployment, canary release and A/B testing easy, because a deployment tool that cannot express those is only half a deployment tool.
Model store or feature store?
Sort each responsibility into the store that owns it.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
Model store
Drop items hereFeature store
Drop items hereTest your knowledge
The book calls which ML platform component the most mature?
The short version
A library that stores only the text of every book, with no author, no edition, no publication date and no catalogue. Every book is technically present. Nothing is findable, and nothing is checkable.
In more depth
ML Platform: Model & Feature Stores
The story that justifies the whole layer
Performance drops for a group of inputs. A DevOps engineer is alerted. "There might be 20 data scientists in the company; who should she ping?" She finds the right one, who cannot reproduce it locally. Four candidate causes:
And then: "What if that data scientist no longer has access to that notebook, or she has already quit or is on vacation?"
The eight artifacts
Model definition · Model parameters · Featurize and predict functions · Dependencies · Data (pointers, or a DVC commit) · Model generation code ("the number of experiments run, the range of hyperparameters considered, and the actual set the final model used") · Experiment artifacts · Tags (owner, task).
The scattering problem: "model definitions and model parameters might be in S3. Containers... in ECS. Data... in Snowflake. Experiment artifacts... in Weights & Biases. Featurize and prediction functions... in AWS Lambda." Tracked in a README — "but this file can be easily lost."
MLflow is "undoubtedly the most popular model store that isn't associated with a major cloud provider." And: three out of the six top MLflow questions on Stack Overflow are about storing and accessing artifacts in MLflow. Stitch Fix built their own, holding the serialized model, the Python environment, the Git commit where the generation code was created, and the owning team.
Deployment
"Deployment is the most mature among all ML platform components." SageMaker, Vertex AI, Azure ML, Machine Learning Studio; MLflow Models, Seldon, Cortex, Ray Serve.
The catch: *"while it's usually straightforward to do online prediction at a smaller scale with most deployment services, doing batch prediction is usually trickier."* And batching requests for online prediction is not batch prediction — many companies run Seldon for online and Databricks for batch.
Feature store — three unrelated problems
Market: took off around 2020. Feast is the most popular open source, strong on batch, not streaming. Tecton is fully managed but "their actual traction is slow because they require deep integration." A January 2022 survey of 95 companies found only about 40% use a feature store — and half of those built their own.
Build versus buy
"If you want to use fully managed Databricks clusters, you probably need only one engineer. However, if you want to host your own Spark Elastic MapReduce clusters, you might need five more people."
Three factors: the stage of the company · what you believe your competitive advantage is ("If it's something we want to be really good at, we'll manage that in-house") · the maturity of available tools, where late entrants hit "integration hell".
"Some people think that building is cheaper than buying, which is not necessarily the case." Plus the cost of innovation — custom infrastructure makes new technology hard to adopt.
Interview Questions
References & Further Reading
Love this visualization?
Sign up to track your progress, earn achievements, use the AI assistant, and access your personal learning dashboard.
100% free • No credit card required