Machine Learning Community Question

Can Feast manage real-time feature engineering for low-latency inference?

Posted on 2025-02-05 • In Machine Learning • By Larry Henderson

My team is moving toward real-time credit scoring. We need to calculate features on the fly as events come in. Does Feast support on-demand transformations, or do we have to pre-calculate everything and push it to the online store? I want to know if it can handle the heavy lifting of calculating rolling averages during the request.

3 Answers 11,082 Views

All answers to this question 3 Answers

Pamela Weaver Answered on 2025-02-06
Answered

Yes, you can use On-Demand Feature Views for this. It allows you to define Python-based transformations that execute at the time of the request. This is perfect for features that depend on request-time data, like the distance between a user's current location and a store. However, for rolling averages or complex aggregations, you might still want to use a stream processor like Flink to push pre-calculated windows into the store. On-demand is best for simple logic; for high-frequency streaming, the integration with push sources is usually the way to go in production.

Jeffrey Payne Answered on 2025-02-07
Answered

Are there any significant latency trade-offs when adding multiple Python-based on-demand transformations to a single inference request?

Larry Henderson Commented on 2025-02-08
Commented

Jeffrey, there is a small overhead because it runs Python code, but for most applications, it's in the millisecond range. If your transformation is vectorized using NumPy or Pandas, it stays very efficient. Just avoid complex loops or external API calls within the transformation logic.

Michelle Riley Answered on 2025-02-09
Answered

It’s a great bridge between raw streaming data and the model, making the online serving layer much more flexible.

Pamela Weaver Commented on 2025-02-10
Commented

I agree, Michelle. It really simplifies the architecture by not forcing every single feature to be pre-computed.

Write a Comment

Your email address will not be published. Required fields are marked (*)

Join the LearnersEra Community

Ask questions, share knowledge and learn from professionals across technology, project management and certification topics.

Change Country and Nearest City

Select your country and nearest city to see courses available in your region.