One Tuesday morning at 09:20, a message came in from the growth team: the click-through rate of the "picked for you" recommendation block on the home page had dropped 18% overnight. The first question was the usual one: "Did anyone deploy last night?" Nobody had. The model was the same model, the services were up, error rates were zero; every health check was green. But on one Kafka panel, a line nobody had ever attached an alert to was quietly climbing: the lag of the consumer group processing user behavior events had passed 40 million messages. Our recommendation model was working; it was just seeing users as they had been nine hours earlier. To a user who had been looking at phone cases the night before, we were still recommending, that morning, what they'd been curious about three days ago. That is exactly the invisible part of the AI in the storefront: not the model, but the bloodstream that feeds it.
Two Towers, Fourteen Million Products
The core of our recommendation system is a two-tower architecture: one tower turns the user, and the other turns the product, into vectors in the same embedding space, and proximity represents interest. The product tower's outputs are computed every night for 14 million products and written to an HNSW-based approximate nearest neighbor index; the user vector, on the other hand, is generated at request time from features updated with the latest browsing events. For a home page request, the flow goes like this: the user vector is computed, 500 candidates are pulled from the ANN index, the candidates pass through business rules (stock, seller score, diversity), and a heavier ranking model ranks the top 40. The budget for all of this is 80 milliseconds. The most instructive consequence of that budget has been this: our model choices are determined not by a ranking of accuracy but by a ranking of accuracy per millisecond. We never took to production a ranking model whose offline metric was 2% better, because it was 30 milliseconds more expensive; spending those 30 milliseconds on a larger candidate count brought in more GMV in the A/B test.

The serving side is an engineering discipline in its own right. The ranking model is compiled to ONNX and runs in a separate inference service on Kubernetes; the pods run on CPU because, at our model size, the cost of a GPU doesn't justify the milliseconds it saves. At the evening peak this service receives 6,000 scoring requests per second, and the HPA's scaling signal isn't CPU but p99 latency. Even boring details, like a cold-started pod being slow on its first requests, can pollute A/B metrics; adding a readiness check that pre-warms the model file wiped out the post-deploy spikes in p99 all on its own.
Scoring With Stale Features
Back to Tuesday morning's incident: the problem was feature freshness. Our online feature store lives on Redis; hundreds of features, such as the categories a user viewed most recently, their latest searches, and their price sensitivity, are updated within seconds by stream jobs that process clickstream events. That night, a consumer that hit a deserialization error because of a schema change went into infinite retries instead of sending the messages to a poison queue, and the lag piled up. Without a single line of the model changing, the quality of the system had collapsed. After this incident we built two things: an "age since last update" metric for every critical feature group, with SLO-based alerting on that age; and freshness awareness in the scoring service. If features are older than a certain age, the service gives up on personalization and falls back to a popularity-based list. Stale personalization is worse than no personalization; we learned that by measuring it in lost CTR.

A close relative of the freshness problem is cold start. A newly registered user has no behavior history, and a product added yesterday has no click signal; a two-tower model is naturally blind to both. On the user side, an in-session model kicks in that instantly turns the first few clicks of the first session into a vector; after three or four clicks the recommendations become visibly personalized, and the effect of this on first-session conversion turned out to be measurable on its own. On the product side, we build a content-based bridge: an embedding generated from the title, category, and image serves as the product's proxy vector until behavioral signals accumulate. Since tens of thousands of new products are listed every day on the marketplace side, this proxy mechanism isn't decoration; it's a necessity.
Recognizing a Fraudster in One Hundred Twenty Milliseconds
At the other end of the same invisible infrastructure sits fraud. At checkout, every payment request has a 120-millisecond window for a decision: a gradient boosting-based scoring model plus a deterministic rules engine. The most valuable features the model sees are relational rather than individual: how many different accounts has this card been tried on in the last hour, which addresses has this device fingerprint been matched with before, what is the return rate of orders going to this address? These relationship features are computed over a graph and, again, written to the online store. One night the rules engine caught the following on its own: 62 different "new" accounts were clustered on three device fingerprints, and all of them were ordering high-priced electronics to different addresses in the same neighborhood. The model didn't find any single account suspicious; taken one by one, the accounts genuinely looked innocent. It wasn't the individuals that gave the fraud away; it was the connections. The amount that operation blocked paid off the fraud team's entire cost for that quarter in a single night.

On the fraud side, choosing the threshold isn't a pure ML decision either: a false positive means rejecting a real customer's payment, and that carries a GMV cost and a trust cost of its own. We tune the threshold together with the business side by putting the amount of fraud blocked and the amount of legitimate orders rejected on the same chart; this curve gets redrawn once a month, because fraudsters are A/B testing us too. We retrain the model not every three months but whenever the drift metrics trigger it. We monitor drift in two layers: shifts in the input distribution (a new device type, a wave of a new payment method) and shifts in the score distribution. Both are silent; they don't throw errors, they just slowly make your decisions meaningless. Once we traced a shift in the score distribution back to a newly launched campaign mechanic that was producing legitimate but unusual order patterns; the model had started flagging campaign customers as suspicious en masse. An unglamorous fix, feeding the campaign calendar to the model as a feature, turned out to be that quarter's highest-return ML work.
The Thing That's Harder Than the Model
From the outside, the AI on the platform looks like nothing more than the "picked for you" heading in the storefront. From the inside, the picture looks like this: model training is maybe a fifth of the job; the rest is the freshness of feature pipelines, millisecond budgets, fallback chains, drift monitoring, and the experimentation infrastructure that connects offline metrics to online reality. That experimentation infrastructure is itself one of the unsung heroes: on the recommendation side, typically five or six experiments are running at the same time, and if experiments aren't assigned to consistent per-user buckets, the interaction between two experiments makes the metrics unreadable. If you ask what cost us nine hours in the Tuesday morning incident, the answer is the lack of an alert. Today the same failure triggers a page within four minutes, because we now monitor not the model but the age of the world the model sees. Today recommendation systems carry more than a quarter of home page-driven GMV, the fraud layer quietly weeds out thousands of transactions every day, and the most critical component of both systems isn't a neural network but that modest line on the Kafka consumer lag panel. Before you hire an ML engineer for your team, start monitoring the health of your feature store and your event stream; the stories of those who get the order backwards always end up at the same Tuesday morning. I enjoy discussing these invisible infrastructure problems; the contact page is open.