Transcript
The audio edit is shorter than the recording, so chapter times play the video.
0:00 Episode Introduction: Feature Stores in MLOps
Alexey
Hello everyone. This event is brought to you by DataTalks.Club, a community of people who love data. We host two types of events. On Tuesdays, we usually have technical events with presentations, like workshops.
Today is Tuesday, but this event is different, and I'll explain why in a moment. I can briefly share our plans for the future. Next month, in February, we will have a conference on Fridays, which I will discuss shortly.
In March, during the first week, we will have a workshop about building scalable end-to-end data pipelines, specifically deep learning pipelines in the cloud. The following week, we will talk about active learning and self-supervised learning. Usually on Fridays, we host live podcast sessions where we discuss various topics. Today, even though it’s not a Friday, we have a similar event.
This is not a workshop; it’s a conversation about feature stores. In March, we will also cover public speaking in the first week and then discuss Datums. Speaking of conferences, this week we have the first day of the conference on Friday. We will cover machine learning use cases with four examples: reinforcement learning, food industry applications, healthcare, and manufacturing.
Next week, we will discuss products and processes, followed by career opportunities in data. Finally, during the last week of February, we will focus on machinery and production. You can read more about this event on our website, datatalks.club.
2:02 Background: From Mechatronic Engineering to ML Platform Builder
Alexey
We also have support from our friends at O'Reilly and the Machine Learning Ops community. During our chat with Willem, we will use Slido for questions. I’ll share a link in the chat now.
Whenever you have a question, feel free to use Slido to submit it.
Last week, we talked about MLOps, including machine learning platforms. One component of these platforms is a feature store. This week, we will discuss this topic in more detail with Willem. Willem is the creator of Feast, an open-source feature store. Previously, he worked at Gojek, where he led the data science platform team. He currently works at Tecton, a company that develops a feature store.
Welcome, Willem.
Willem
Thanks, Alexey. I’m happy to be here.
Alexey
Before we dive into feature stores, can you tell us a bit more about your background and your journey so far?
Willem
Sure. I’ll give a one to two-minute summary. I’m South African and grew up there. I studied mechatronic engineering. During university, I built a networking company, which I eventually sold. Then I moved into control systems and automation, bridging traditional engineering and software.
I worked in that industry for about three years, then moved to Asia, where I worked across the stack from low-level electronics to cloud solutions. We built vertically integrated solutions for large MNCs and eventually focused on large data solutions and analytical warehousing for about two years.
After that, I moved to Singapore and became the first engineering hire for a machine learning, or at the time, data science team at Gojek. At that stage, Gojek was a unicorn valued at about a billion dollars. They had a lot of interesting products and data but were not using it effectively.
They hired many data scientists but couldn’t get them into production. They embedded us as engineers and asked me to lead the team to help productionize the data scientists’ work. Traditional product engineers were busy with other responsibilities, so they couldn’t handle this. I led that team for about four years.
After building the ML platform at Gojek and leading that team, I moved to Tecton. A large part of my focus at Gojek was building feature stores, which is also my primary focus at Tecton.
Alexey
That’s an interesting journey. As a mechanical engineer, did you learn to code at university?
Willem
Technically, it was mechatronics, but most of the focus was on mechanical aspects. About 70% of it didn’t interest me much. The software aspect was always the most interesting and relevant to what I do today.
Alexey
That’s impressive from low-level work to cloud. So, what exactly are feature stores, why do we need them, and what problems do they solve?
6:43 Feature Store Definition and Core ML Problems Addressed
Willem
Feature stores solve multiple problems. Essentially, a feature store is an operational data system designed specifically for machine learning. It addresses operational problems like moving offline features into an online production environment.
It ensures consistency between online and offline environments, which models require. It allows data scientists to ship features into production without relying on engineers. It provides version control and enables the creation, sharing, and reuse of transformation code.
Companies typically start considering feature stores when features are being duplicated across projects. That duplication signals a problem. Feature stores help monitor features, ensure valid data is served to models, and detect drift or distribution shifts over time.
Alexey
So, feature stores act as a data storage layer that ensures consistency, is user-friendly for data scientists, supports version control, and simplifies feature reuse.
Willem
Exactly. Not all feature stores solve the same problems. For example, Feast doesn’t handle transformations, while Tecton’s feature store does. The scope of what a feature store should handle varies, but these are the core problems.
Alexey
By transformation, do you mean taking raw data from a data lake, applying some function, and then sending it to the feature store?
Willem
Yes. Typically, a feature store sits between raw data and your production ML environment. It can access streams, data warehouses, and data lakes. Transformations can be applied to any of these sources, then served to production, decoupling ML from data infrastructure.
Alexey
As a data scientist, I’m used to querying data with SQL. Do feature stores provide a SQL-like interface, or is it different?
Willem
There are two aspects: production creation and retrieval. Most features are pre-computed. Feature stores like Tecton allow transformations via Python, PySpark, or SQL. Once published, features are materialized and persisted in a storage engine like DynamoDB or Redis.
11:02 Transformations: From Raw Streams/Warehouses to Features
Willem
For retrieval, you normally use an API rather than SQL. A SQL interface for retrieval would defeat the purpose.
If you provided a SQL interface for retrieval, you wouldn't have the same guarantees in terms of performance and production. Most online models only require key-value enrichment of entity data; they don’t need arbitrary queries executed.
Some feature stores, like Tecton, do provide on-demand or real-time transformations. For example, in a fraud detection system, incoming requests may include live data attached to an order or booking. Those features are transformed at request time. For the most part, though, features are pre-computed, and that’s where most arbitrary logic is applied.
Alexey
You mentioned fraud detection. I imagine a scenario where a user goes to an e-commerce store like Amazon and makes a purchase. We have information about the user, and when a transaction happens, we want to predict if it is fraudulent. At that moment, we query our model with the user ID and transaction details. We then ask the feature store, "What are the features for this user ID?"
Willem
Yes, that’s correct.
Alexey
Feature stores are very popular these days. I’m part of the MLOps community, and people discuss them almost every day. Why do you think they are so popular? Why is there so much hype?
Willem
The hype is interesting. It’s not just feature stores; ML in general has had a lot of hype. Part of it is competition in the space—employment, marketability, and skills. It’s similar to the Node.js hype in the past.
A large part is people rebranding their skill sets and becoming niche experts. But feature stores and MLOps also provide real value to companies. Many organizations are digitizing, and those that don’t implement these systems properly may fall behind. Some companies have succeeded because they solved these problems, like Uber’s Michelangelo platform.
14:40 Feature Creation vs Retrieval: SQL, Python, APIs, and On-Demand Transforms
Willem
MLOps is critical if you want to use ML at scale. Machine learning platforms have become standard—whether it’s Kubeflow, MLflow, or Seldon, most companies have a stack running models. But data accounts for almost 90% of the equation. The value comes from producing new features, shipping them to production, and iterating constantly.
A feature store sits between your data scientists and your production environment. It acknowledges the value of a system that enables feature reuse and reduces waste. Whether feature stores solve all problems is another matter, but they have massive potential business impact.
Alexey
So there is hype around MLOps and feature stores, but this hype is warranted?
Willem
Yes. Data science and machine learning engineering have been around for five to ten years. The industry is maturing, and these new tools address hard problems, which is why there is hype.
Alexey
Most of the remaining hype comes from feature store vendors promoting their software.
16:36 Production Example: Real-Time Fraud Detection Feature Lookup
Alexey
Let’s take a step back and discuss the problems data science teams usually face. Are these problems more organizational or technical?
Willem
Both. Individual contributors often focus on technical problems, thinking organizational issues are unique to their company. But many organizational problems are common patterns across organizations.
Some core technical problems include getting features into production, ensuring online and offline consistency, allowing data scientists to ship data without engineers, enabling transformations, sharing and reuse, and monitoring features for quality.
These are technical problems, but organizational problems overlap.
For example, shipping features into production without an engineer is an organizational challenge. Engineers may prioritize their product OKRs over helping data science projects. Data scientists can be treated as second-class citizens, even if they are highly skilled. Their use cases and goals may not be prioritized, yet they are expected to deliver results.
18:53 Hype vs Value: Why Feature Stores Matter in MLOps
Willem
Sometimes, organizations don’t fully understand the value data scientists can bring. Failures in data science projects are normal, but organizations may undervalue their contribution. Over time, this is changing.
Shipping features into production involves organizational friction, because data scientists need to see the results in production to iterate. Sharing and reuse is also an organizational problem. Siloed teams often lack communication channels, infrastructure, or ways to broadcast how features were created, their intent, semantics, and dependencies.
There’s a social and trust aspect to sharing and reuse, and that’s largely the challenge.
Alexey
An organizational problem, okay. That makes sense. We have multiple teams, and each team is solving its own problems. They are building their own services and machine learning solutions.
At the end, it turns out there is some overlap between the work two teams are doing. They might be solving different problems, but some features, like user-based features or other common features, are the same. They have to implement them from scratch, and this is an organizational problem.
Willem
I would say a lot of organizations take a flat approach to these teams. They embed them in product teams and verticals. Often, a fraud team and a team doing analytics on user data use the same entity data. The features are common and reusable across teams.
21:24 Organizational Challenges: Team Silos, Duplication, and Speed to Production
Willem
However, the fraud data science team may have an air of secrecy. They feel that what they are working on should not be exposed to other teams. Those are organizational inefficiencies. From a CDO or CIO perspective, it does not make sense for work and data to be duplicated. This inefficiency could be solved through technology or other means.
Alexey
The solution would be to have some sort of central theme or central piece of technology. Perhaps a platform that is common for all teams, and the feature store would be part of this ML platform.
Willem
Yes, that is correct. At Gojek, you can architect these systems in different ways, but in an ML life cycle, at each stage, you have tools that allow you to progress further. This includes data transformations, storage, model training, model deployment, serving, and experimentation. Feature stores primarily operate in the data transformation and data serving stages.
The idea is to have a platform with all these capabilities. Data scientists do not need to rely on engineers who are busy with their own work. They can use pre-computed features that are already in the feature store, pull them, and train models.
You can think of a utopian end state where you do not write any boilerplate. You only write your transformations, iterate easily, deploy, and the results are materialized into offline and online stores. An API allows your model to access features in production or development. You can enrich entities like user IDs with features without needing an engineer.
Ideally, there is also a validation layer that monitors metrics and ensures that good quality data reaches your model.
Alexey
This dream state sounds really impressive. Are there companies that are already there?
Willem
I cannot speak about that specifically. My employer already provides a product like that.
Companies like Uber, with Tecton, already have this from a feature store perspective.
Alexey
If you have an ML platform and other components, and you plug that into Tecton, you get the complete flow?
Willem
Yes. If you deploy these with an ML platform, Tecton does not perform upstream transformations. You need a system upstream, like dbt, Airflow, or Spark ETL, to handle transformations.
25:17 Platform Role: Feature Stores within the ML Lifecycle
Alexey
Kubeflow pipelines also fall into this category, right?
Willem
Yes. I would not use Kubeflow pipelines for transformations, but it is a good tool for model training. I consider these separate tools based on the stage of the ML life cycle they address.
Alexey
Feast is an open source library you created. What problem does it solve?
Willem
Feast is a feature store built at Gojek, productionized and operated as part of the ML platform stack. It solves many of the common problems. We aimed to solve online and offline consistency, provide a way to publish data into production without engineers, and support monitoring.
We did not fully solve sharing and reuse. We did not focus on UI or discovery because many teams were content duplicating code and pipelines. This is often to protect production environments.
Feast primarily decouples your production ML environment from data infrastructure. It ingests pre-computed features from streams and batch sources, provides an interface to build training data sets in a point-in-time correct way, and gives a unified interface for models to access features online and offline.
For online serving, we use Redis. Feast was co-developed with Google Cloud and open sourced. I continued developing it at Tecton, where it is one of our focused offerings.
Alexey
Feast can be installed on Google Cloud and AWS?
28:01 Ideal Production Setup: Materialization, Serving, and Validation
Willem
Yes. We have generalized it so it can also be deployed on Azure. We recently launched a Terraform deployment for Azure, and of course, GCP is supported.
Tecton provides an end-to-end package for enterprises. You can use it without setting up the cloud infrastructure yourself.
Tecton is more full-featured. It covers transformations, user interface, on-demand streaming transformations, batch transformations, monitoring, security, auditability, and compliance. It is targeted at companies that want a complete solution.
Feast is targeted at teams that are happy to slot a smaller tool into a larger stack. At the end of the day, feature stores are still overloaded and trying to solve many problems.
Alexey
Can we step back and discuss the basic components of a feature store? You mentioned offline and online storage. For online, you mentioned Redis or Dynamo. What about offline storage?
Willem
There is a great blog post I wrote with Mike for Tecton called What Is a Feature Store?. In that post, we describe all the components.
We'd say there is a transformation or computation engine. You have your upstream data sources such as streams or batch. Then there is the transformation system, such as Spark or SQL in a warehouse, that transforms the data. Then there are storage layers.
Normally there is offline and online storage. In Tecton, offline storage is an object store like Delta, but you can also use a warehouse like BigQuery or Snowflake. For online storage in Tecton, that is Dynamo or Redis. Normally it is a key-value, low-latency store for online use. Offline storage is typically a big data lake or warehouse, such as Hive, BigQuery, Redshift, or Snowflake.
Those are the two storage components. Then there is a serving layer, which is normally an API that allows you to read from either the online or offline store. Sometimes an SDK is used as a query generator. Serving is the third component.
A critical component in a feature store is the registry. Both Feast and Tecton have this. You define schemas that describe where your data is upstream and the transformations to apply. You register this in the registry, and the feature store executes those schemas as infrastructure. It either creates tables in the warehouse or runs computational jobs based on the registry definitions.
31:42 Feast Overview: Open-Source Feature Store Design and Use Cases
Willem
The final component is the monitoring layer. It tracks data being ingested from streams or batch sources, row counts, distributions, and data being read out of the feature store. Teams, especially in fraud, often log features back into a warehouse to validate the data being served to models and ensure there is no drift.
The five main components are the transformation engine, storage engine, serving layer, registry, and operational monitoring layer. Registries also usually include a user interface for feature discovery and entity discovery.
Alexey
Let's say we want to start using a feature store at our organization. It would likely come with a machine learning platform. How would we go about doing this?
Willem
It depends on the use case. Some use cases are not suitable for a feature store. At Gojek, with 16 or 17 products, we identified cases where a feature store was not necessary. If you only need batch processing, you may not need it. If your use case involves tabular data with online serving needs, like fraud detection, product recommendations, or user risk scores, then a feature store is very valuable.
34:11 Tecton Overview: Enterprise Feature Platform and Full Lifecycle Support
Willem
Feast adds value in the online serving layer and unified access. You implement it after your transformation pipelines. You already have some system to do transformations, like BigQuery batch or streaming.
Traditionally, some teams transform data and write it directly into production. We do not recommend that. We recommend pushing streams back to streams and batch data back to the lake or warehouse. The feature store is a layer on top that lets you pick which columns and tables to productionize for serving.
Feast can read existing transformed data from streams and batch sources. You could also read raw event logs and transform them using Tecton. Typically, feature stores are deployed between your data infrastructure and production serving environments.
Alexey
To summarize, if we already have data infrastructure, such as dbt or Airflow, we can add Feast on top of existing pipelines, register schemas for specific tables, and productionize them.
36:40 Architecture Breakdown: Transform Engine, Storage, Serving, Registry, Monitoring
Alexey
Feast would take features from the offline store, like a data lake or Snowflake, and put them in online storage.
Willem
With Tecton, you can also perform transformations. It can read from logs or events, apply transformations, and produce features.
With Feast, you point to tables that are already featurized or transformed. With Tecton, you point to raw data in your lake, apply transformations, and compute features.
Alexey
You mentioned some cases where a feature store is not a good solution. Can you explain?
Willem
Feast is not very useful if you only need batch scoring, such as for marketing campaigns. You can handle that with SQL, BigQuery ML, or similar tools. There is no online serving component needed. For Tecton, it can still be valuable because it provides a transformation system and bridges offline and online use cases.
Alexey
If we have batch pipelines, when we decide to go online and start serving models, we already have everything and can deploy a web service.
Feature stores are great for tabular data online models. For less structured data, such as images or text, they are not the best solution.
Willem
It depends on the value you get. You can serve binary blobs to production, but for a 2D image, treating it as a 2D array provides little semantic value. Features are normally identified and have intent. Binary blobs are harder to reuse or share between teams. You are serving data for a specific use case but not building efficiency for the team.
40:39 When to Adopt Feature Stores: Online Tabular Use Cases vs Overkill Scenarios
Alexey
A good use case might be applying a model, such as image classification, and saving the results.
Let's say we have a model that outputs the probability that an image is a car and we just save it. In real time, we ask the feature store for the probability for this image ID, and it gives back the prediction. This is a good use case, right?
Willem
If you are using those outputs as features for downstream systems, that is a great use case. You can have a column like is_car as a binary value and probability_car as a float, like 0.7, to feed a subsequent model. If the input to the model itself is the image, reading the image from the feature store is not a good use case. Normally, incoming requests have a request ID and a URL to S3 where you download the image and feed it to the model.
The output of that model is something you do want to store in a feature store. At Gojek, we often sent model outputs back into a stream and then read them into the feature store, creating cycles that expand the data foundation. These output models can be reused as features because the model itself is just a transformation.
42:58 Integrations: dbt, Kubeflow, Airflow, Warehouses, and ML Pipelines
Alexey
If I want to learn more about feature stores as an individual contributor, how should I start?
Willem
Go to the ML Ops community. There are many resources, especially in the Data Ops and open-source channels. Read blog posts from Tecton. These explain our thinking about feature stores and the category itself.
For hands-on learning, you can install Feast on your laptop. Go to feast.dev, run Docker Compose, and try the example notebook. This gives sufficient understanding. If your company has a similar use case, you can propose it.
We have not fully articulated all use cases yet. We plan to produce more content that explains when to use feature stores within an organizational context. The documentation provides guidance even without installing Feast. Some companies, like Monzo, use feature stores differently, such as storing text data.
45:51 Streaming vs Batch: Flink, Spark, and Real-Time Feature Engineering
Alexey
What workflow do you recommend for engineering new features, testing offline performance, and ensuring offline and online data matches?
Willem
Transformations are treated separately. Streaming transformations are handled differently from batch. For batch, you can use dbt or a similar system. Validate during transformations using tools like Great Expectations or TFDV.
Four main validation points are: streaming ingestion and transformation, batch validation before ingestion into the offline store, validation before training, and validation before serving. A feature store provides hooks for these validations. Without a feature store, you need to write boilerplate code to prevent bad data from reaching models.
48:07 Validation and Monitoring: Drift Detection, Great Expectations, TFDV
Alexey
Great Expectations is a tool that allows you to create expectations about your data, profile columns and distributions, and validate new datasets against these expectations. You can layer expectations, such as ranges, distributions, or categorical values. It is mostly focused on batch today, but tools for streaming use cases are emerging.
Do you have any opinion on Apache Flink versus Apache Spark for calculating real-time features?
Willem
We started with Apache Beam. Beam and Flink are similar. Flink has a great API and is highly regarded. We use Spark with Feast because of its ecosystem and connector support. Flink may be superior in raw technology, but Spark can execute in multiple environments, including Hadoop, GCP, Azure, and AWS, making it easier for companies to adopt. Flink is getting there; some cloud providers support it, such as AWS. There is also a Kinesis connector for Flink.
50:50 Backfilling and Materialization Strategies for Historical Features
Alexey
I remember seeing something like that.
Willem
All those folks running on-premise or large Hadoop stacks, HDFS, and Hive will eventually need to get onto BigQuery or Snowflake and modernize. For some companies, that will be a 10-year effort.
Alexey
What APIs are provided for feature transformations? Is it similar to building Spark or Beam transformations?
Willem
In Tecton, it's like PySpark or Spark SQL. If using an existing warehouse, it’s SnowSQL or BigQuery SQL. Online transformations, meaning just-in-time or request-time transformations, are Python. You can write Pandas transformations or other Python transformations. Some teams run Scala transformations in production, but that’s not supported today in Tecton.
52:04 Feature Ownership, Governance, and Migration Strategies
Willem
For Feast, it doesn’t matter. On-demand transformations are requested by many teams, but unifying on-demand, online, and offline aspects is challenging. You need to ensure the same transformations are applied to training datasets.
Alexey
At what size of a group does it make sense to build a feature store?
Willem
Traditionally, when you have multiple use cases, like two or three data scientists with multiple projects, or multiple teams with one project that need sharing and collaboration. We are exploring whether Feast can add value for a single data scientist or single team on a single use case. The current status quo is a platform team addressing multiple solution-oriented teams.
Alexey
If we’re a small startup hiring our first data engineer or data scientist, should we start using a feature store?
Willem
Not initially. If you have only a few features and one model, it’s manageable. A feature store becomes valuable when you want to iterate on models, have multiple use cases, and teams start working independently. Starting with two or three data scientists and engineers doesn’t require it.
54:52 Practical Getting Started: feast.dev, Docker Examples, and Learning Resources
Willem
The biggest friction is transformations. If you already have transformations in one place and add a feature store that allows transformations, now you have two places. Feast doesn’t do transformations, so it slots in easily. With Tecton, you need to decide where transformations live. Greenfield projects may adopt Tecton, and brownfield projects may not migrate.
56:00 Key Takeaways: Where Feature Stores Deliver Business Impact
Alexey
Brownfield means an existing project, the opposite of greenfield.
What is your take on dbt and feature stores?
Willem
Data warehouses are dominating the space. Feature stores slot well onto them. If you already have dbt for batch transformations, it solves most of your transformation needs. Analysts can contribute features through SQL. Feature stores can leverage that to drive business value.
Alexey
How do you set up features back in time, for historical data?
Willem
In Feast, the upstream system handles backfill. You run a new ETL pipeline and call the feature store to re-ingest features into the online environment. In Tecton, you change the transformation, and it automatically backfills from a start date for production.
Alexey
Who should maintain features in a feature store?
Willem
The most effective approach is not to gatekeep. Initially, data scientists maintain features. Over time, a central team can step in when features are duplicated or highly reused, creating a golden dataset and coordinating deduplication. Central maintenance is usually driven by feature importance and production impact.
Alexey
What’s the difference between a feature store and a traditional data platform with ETL, preparation, and a good catalog?
Willem
A feature store is an opinionated data system for operational data for machine learning. Traditional data platforms are not focused on low-latency serving. Feature stores unify online and offline interfaces for ML, ensuring identical results for queries. In theory, a data platform could provide this, but the feature store bridges offline and online ML worlds.
Alexey
We still have seven more questions, but we shouldn’t keep you too long.
Willem
You can share the questions in Slack. I or the community can answer them later.
Alexey
Thanks a lot for coming. I learned a lot about feature stores, when to use them, and when not to. Thanks, everyone, for listening and asking questions.
Willem
Thanks. Have a nice day.