<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Wellington Bengtson on Medium]]></title>
        <description><![CDATA[Stories by Wellington Bengtson on Medium]]></description>
        <link>https://medium.com/@wellington.bengtson?source=rss-b9b989a7f7fb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Wellington Bengtson on Medium</title>
            <link>https://medium.com/@wellington.bengtson?source=rss-b9b989a7f7fb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 21:54:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@wellington.bengtson/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Serving features efficiently for online inference with Fast Feature Store]]></title>
            <link>https://medium.com/amex-gbt-technology/serving-features-efficiently-for-online-inference-with-fast-feature-store-part-1-8992fdce2eb4?source=rss-b9b989a7f7fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/8992fdce2eb4</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ml-platform]]></category>
            <category><![CDATA[ai-ml-platform]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[mlops]]></category>
            <dc:creator><![CDATA[Wellington Bengtson]]></dc:creator>
            <pubDate>Thu, 26 Mar 2026 13:25:57 GMT</pubDate>
            <atom:updated>2026-04-01T10:14:53.308Z</atom:updated>
            <content:encoded><![CDATA[<h3>Part 1 Our online inference use cases</h3><figure><img alt="“City Traffic” by Burst is marked with CC0 1.0. To view the terms, visit https://creativecommons.org/publicdomain/zero/1.0/?ref=openverse." src="https://cdn-images-1.medium.com/max/1024/1*A0W8xluENldO0oB-38Yn4g.jpeg" /></figure><h3>Introduction</h3><p>This article is part of a multi-part series. In part one, we’ll introduce what a feature store is, describe our core AI systems, and explain how we evaluated and integrated different online feature store solutions.</p><p>In part two, we’ll explain why we decided to build our own online feature store, walk through its architecture and the key challenges we encountered, and close with the next steps for the project.</p><h3>Setting the basics</h3><h4>What is a feature in machine learning?</h4><p>In machine learning (ML), a feature is an individual measurable property in a dataset that’s used as input for a ML model to make predictions during training and serving.</p><p>In a model that tries to predict if the user is likely to buy a flight, the features might include the flight price, its duration, the user’s preferred airport, and other characteristics.</p><figure><img alt="A few examples of features" src="https://cdn-images-1.medium.com/max/936/1*5frCPYyE_i-9qT-5Op5b2A.png" /><figcaption>Figure 1: A few examples of features</figcaption></figure><p>These features can help the model identify patterns such as a customer preference for a specific departure time. Selecting which features to give as input to the model is called feature engineering. It’s the process of using the domain knowledge of the data to create informative features that help machine learning algorithms work effectively.</p><p>Before model training and serving, data scientists perform feature engineering: selecting, creating, and transforming the inputs (“features”) used by the model. Well-designed features help the model learn more accurate patterns and make better predictions.</p><h4>Model training and serving</h4><p>From there, data scientists select and configure a machine learning model, provide labeled data for training, and benchmark its predictive performance.</p><p>For unsupervised problems, models learn patterns from unlabeled data. In our example, the model will try to predict which item(s) the user will purchase among those available on the site in their previous sessions, based on the items’ features and what the user purchased or browsed for in the past.</p><p>Some data is set aside from training and used for validation or testing to check how well the machine learning model performs on new, unseen data. This helps makes sure the model will work reliably on different data in the future.</p><p>Once the model shows satisfactory performance on the test data, it can be deployed to run live.</p><h3>Feature store concepts</h3><h4>A feature store is a collection of feature groups</h4><p>A feature group can be visualized as a table which has rows with a unique identifier for each, and where each column in the table is a feature. A feature store is a central location for feature groups.</p><p>Below is an example of a feature group for the e-commerce predictor model. For each user who has purchased at least once, we can pre-compute the average amount spent per item. This helps the model recommend more or less expensive items.</p><figure><img alt="Example of a feature group" src="https://cdn-images-1.medium.com/max/362/1*z8I3tBT9FmZ2c5KW4hMkrw.png" /><figcaption>Figure 2 Example of a feature group</figcaption></figure><h4>Offline feature store vs. online feature store</h4><figure><img alt="Online feature store vs offline feature store" src="https://cdn-images-1.medium.com/max/860/1*D2tEWhmNY0dIHVbTkI4YhA.png" /><figcaption>Figure 3 Online feature store vs offline feature store</figcaption></figure><p>On one hand, deployed models need to be able to access the current values of their features for inference. Inference use cases are often extremely sensitive to latency. It’s typically infeasible to generate a feature for the models at any point of time. Rather, features are pre-computed and stored in low-latency storage — the inference store.</p><p>On the other hand, the offline store is primarily used for two reasons: building training datasets (at different points in time) and loading the most recent values for a feature in the online store. This then serves those features with minimal latency in a production environment. It’s also where the history of each feature is saved for multiple purposes such as posteriori investigations or reproducibility of a previous model training iteration.</p><h4>Not all features will go in the feature store</h4><p>Depending on the use case, features might be available during inference and don’t need to be pre-computed and stored in a feature store. Think of the e-commerce model as recommending items to a user. Product details including price, color, and brand, are directly available on the site. This differs from the previous client’s purchases where some queries needed to be run on the site transactions’ database beforehand.</p><h3>Previous solution</h3><p>The below diagram gives a simple view of an inference.</p><figure><img alt="Previous online inference solution" src="https://cdn-images-1.medium.com/max/936/1*XESnwC5Y8AEVoSuO1hhHrw.png" /><figcaption>Figure 4 Previous online inference solution</figcaption></figure><p>Before this, we used SageMaker Feature Store as a solution.</p><p>On the SageMaker Feature Store, we could find the key features we were looking for:</p><ul><li>Serverless online store based on DynamoDB</li><li>Offline store on S3</li><li>A nice feature catalog</li><li>Feature lineage</li></ul><p>In 2023, when we developed the service, we observed the following limitations:</p><ul><li>Feature ingestion is slower than we hoped.</li><li>Limited number of keys per request: the online SageMaker Feature Store is limited to 100 keys per request or ten feature groups per request.</li></ul><h3>Use cases</h3><h4>Flight ranking AI system</h4><p>Flight ranking AI system uses features from 10+ feature groups. An example of a feature in this scenario is an airport’s popularity by city (how popular is the Paris Charles de Gaule airport in Paris?) So, the key of the feature group is the airport code, and the popularity in the city is one of the features.</p><p>Initially, we took a naive approach by querying the SageMaker Feature Store for each key individually. This resulted in flight sort requests taking over 60 seconds — well above our response time requirements. We therefore optimized our call strategy to improve performance.</p><figure><img alt="Requesting feature values one by one" src="https://cdn-images-1.medium.com/max/834/1*XcUwQOkeFs58bK6U7V7sew.png" /><figcaption>Figure 5 Requesting feature values one by one</figcaption></figure><p><strong>Batch calls<br></strong>We optimized this by batching our calls to the SageMaker Feature Store. When the inference engine receives a request, it extracts all necessary keys, groups them into batches of 100, and sends them to the feature store. The number of keys per request remains manageable — for example, a Paris to London flight search involves at most three outbound airports (Charles de Gaule, Beauvais, and Orly). However, since we have over ten feature groups and the SageMaker Feature Store accepts a maximum of ten per request, we must send multiple requests.</p><figure><img alt="Requesting feature values in batch" src="https://cdn-images-1.medium.com/max/834/1*AExyUIhTvnMrwBXxDjhU5w.png" /><figcaption>Figure 6 Requesting feature values in batch</figcaption></figure><p>With this approach, we managed to reduce response times (on p95) from <strong>60s</strong> to <strong>500ms, </strong>and the flight ranking AI system was released. The response times were now acceptable, but we still want to do better.</p><h4>Hotel ranking AI system</h4><p>Hotel ranking AI system has a completely different structure for feature groups. It has a few, but each one has an enormous number of keys (one of them has tens of millions of keys).</p><p>We implemented the batch strategy again, but this time without success. For some searches, it was necessary to request feature values for 40,000 keys. Given the limitation of 100 keys per request, it was necessary to send 400 requests to the SageMaker Feature Store. Even trying to parallelize those requests with multiple threads, we were still getting response times above five seconds — which did not match the requirements. In addition, we were getting to SageMaker Feature Store quota limits, which could impact the other endpoints (flight ranking AI system, for example).</p><p>So, we decided to go with an in-memory approach. At the startup of the endpoint, the features are downloaded from S3 and loaded into a Python dictionary. That came with an extra difficulty; SageMaker endpoints must be ready to receive traffic in less than two seconds, so the inference engine creates a background thread to load the data, and, in the meantime, the SageMaker Feature Store is targeted.</p><p>Once the data is loaded, the in-memory feature store is used. Given that we need to explicitly activate an endpoint to receive traffic, this solution is useful when there is a restart of an endpoint.</p><figure><img alt="Requesting feature values at bootstraping" src="https://cdn-images-1.medium.com/max/936/1*ZnrCS1zIlXuNF_RYvFXl3w.png" /><figcaption>Figure 7 Requesting feature values at bootstraping</figcaption></figure><p>The upside of this solution is inference performance: the p95 of a hotel sort inference before migration was 145ms. The downside is that it requires significant memory to load the data, and we must restart the endpoint each time we need to refresh the in-memory feature store — both of which increase operational costs.</p><h3>Conclusion</h3><p>In this first part of the series, you’ve learned why we adopted two different online feature store solutions: Amazon SageMaker Feature Store for the flight ranking AI system, and an in-memory feature store for the Hotel Ranking AI System. But because we were not satisfied with maintaining two separate solutions, we developed an in-house online feature store.</p><p>In the second part of this series, you’ll learn about this solution in detail, and discover the challenges we faced rolling it out until all our AI systems adopted it.</p><p><em>This article represents the personal perspectives of the author and should not be considered an official statement, endorsement, or position of GBT or its affiliates.</em></p><p><em>American Express and certain associated logos are trademarks of American Express, used in approved formats by GBT Travel Services UK Limited and its authorized sublicensees pursuant to a limited license. American Express holds a minority interest in Global Business Travel Group, Inc. (NYSE: GBTG), which operates as a separate company from American Express.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8992fdce2eb4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/amex-gbt-technology/serving-features-efficiently-for-online-inference-with-fast-feature-store-part-1-8992fdce2eb4">Serving features efficiently for online inference with Fast Feature Store</a> was originally published in <a href="https://medium.com/amex-gbt-technology">Amex GBT technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>