TLDRocket
Sign in

Why real-time AI at scale is so hard

The New Stack Felipe Cardeneti Mendes

Real-time AI usually breaks in production, not in tests. The culprit is often the data pipeline, not the model itself.

Based on reporting by The New Stack, Felipe Cardeneti Mendes — read the original for the full story.

Summary, retelling and take written by AI under human oversight; images are AI-generated illustrations. How we work · Report an error

Real-time AI looks tidy in development and then gets messy the moment real traffic shows up. That was the central warning in The New Stack’s discussion with Tim Koopmans, who learned the hard way while building an ML-based financial trading app. The theme is simple: when latency climbs or accuracy slips, the model often takes the blame for problems hiding elsewhere.

One of the biggest traps is tail latency. Tim’s app looked fine until it was pushed toward about 740,000 operations per second, when P99 latency jumped to 3 seconds. The model wasn’t the issue. Feature lookups were. A small number of reads ended up waiting behind writes, and once the system hit heavy concurrency, tuning retries and caches didn’t save it. That kind of spike is a property of the architecture, not a little bug to patch away.

Accuracy can fail in a quieter way. Tim saw user profile data drifting far past a five-minute freshness target, by hours, while offline evaluation still looked healthy. Vector embeddings also went stale. The result was the classic production trap: the numbers in the lab looked good, but live decisions were made on old data. The lesson is blunt. Freshness matters as much as model quality, and sometimes more.

Vector indexes bring their own problems. Re-embedding content over and over can rot an index, and Tim saw recall sink to 42% while query latency climbed. His advice was to treat the index like any other database index: monitor recall, plan for partial or batch builds, and expect to rebuild when the similarity function, search parameters, or embedding model changes. There is no magical “set it and forget it” button here.

The rest of the advice is classic distributed systems thinking dressed in AI clothing. Separate training from serving. Separate writes from reads. Expect retraining to happen, and plan for the awkward cutover period when old and new models overlap. If the system can’t absorb a surge in writes or a sudden change in traffic shape, the doom loop starts fast: latency drives staleness, staleness hurts accuracy, accuracy pressure triggers retraining, and retraining makes the latency problem worse.

My take — AI-written commentary, not fact-checked reporting

This is the part of AI everyone keeps trying to skip: the boring plumbing wins. The industry keeps selling model magic, but the real fight is still against queues, contention, stale data, and bad assumptions. Fancy prompts won’t save a system that can’t move bytes without tripping over itself.

Read more about this at: The New Stack

Related stories

The daily briefing

Every AI story that matters, in your inbox by 8am.

TLDRocket reads all relevant sources, removes duplicate coverage, and summarises the day in two minutes. Follow companies and topics for alerts, or get the briefing in Slack. Free, no spam, unsubscribe anytime.