Inferensys

Glossary

Online Store

A low-latency database component of a feature store designed to serve pre-computed feature vectors to machine learning models during real-time prediction requests.
Data engineer managing feature store on laptop, feature definitions visible, casual data engineering session.
FEATURE STORE INFRASTRUCTURE

What is an Online Store?

The online store is the low-latency database component of a feature store responsible for serving pre-computed feature vectors to machine learning models during real-time inference.

An online store is a specialized, low-latency database within a feature store architecture designed exclusively for real-time feature serving. Its primary function is to store the most recent, pre-computed feature values for every entity and deliver them as a complete feature vector in milliseconds when queried by a model endpoint. Unlike analytical databases, the online store is optimized for high-throughput point lookups using a primary key, typically an entity ID, ensuring that real-time prediction requests are not bottlenecked by complex joins or heavy aggregations.

The data in an online store is populated through a process called materialization, where features computed in batch or stream processing engines are pushed to the store. To maintain feature freshness, the store must support high-velocity writes and often integrates with change data capture pipelines. Common implementations leverage in-memory caches like Redis or low-latency key-value stores such as DynamoDB, providing the sub-10-millisecond retrieval speeds required for latency-sensitive applications like dynamic pricing and next-best-action models.

LOW-LATENCY FEATURE SERVING

Key Characteristics of an Online Store

The online store is the real-time serving layer of a feature store, engineered to deliver pre-computed feature vectors to machine learning models with sub-10ms latency during prediction requests.

01

Ultra-Low Latency Retrieval

The defining characteristic of an online store is its ability to serve feature vectors with single-digit millisecond latency. Unlike the offline store, which is optimized for high-throughput batch scans, the online store uses key-value access patterns to retrieve the latest feature values for a specific entity ID instantly. This is critical for real-time use cases like fraud detection and dynamic pricing, where a decision must be made within the span of a single HTTP request. Architectures typically leverage in-memory databases like Redis or Aerospike to bypass disk I/O bottlenecks.

< 10 ms
Typical p99 Latency
100k+
Queries Per Second
02

Point-in-Time Serving Consistency

The online store must serve the latest materialized values for every feature in a vector. This requires a strict synchronization contract with the offline store and streaming pipelines. When a model calls the Serving API, the online store assembles features from multiple Feature Groups into a single, ordered Feature Vector. The system guarantees that the served vector is a consistent snapshot, preventing scenarios where a model receives a stale user_click_count alongside a fresh session_duration, which would corrupt the prediction.

03

High Availability and Fault Tolerance

Since the online store sits directly in the critical path of user-facing predictions, it must be designed for five-nines availability (99.999%). This is achieved through active-active replication across multiple availability zones. If a primary node fails, the Serving API must seamlessly failover to a replica without dropping requests. Common strategies include using consistent hashing for sharding and maintaining a Feature Cache as a hot in-memory buffer to absorb traffic spikes during infrastructure outages.

04

Low-Cardinality Entity Indexing

The online store is optimized for point lookups by Entity keys, such as user_id or product_sku. It is not designed for complex analytical queries. The storage engine uses highly compact, low-cardinality indexes to map an entity ID directly to a memory address or disk block. This is fundamentally different from a vector database, which performs approximate nearest neighbor search. The online store performs exact match retrieval, ensuring that the features for user_123 are fetched with zero false positives.

05

TTL-Based Data Expiry

To manage memory costs, online stores implement Time-to-Live (TTL) policies on feature values. Stale features that exceed their Feature Freshness SLA are automatically evicted. For example, a user_session_features group might have a TTL of 30 minutes, while user_demographics might persist indefinitely. This mechanism prevents the online store from becoming a bloated replica of the offline store and ensures that models explicitly fail or fall back to defaults if real-time data has not been refreshed.

06

Integration with Change Data Capture

The online store is populated not by direct writes from application code, but through a materialization process triggered by Change Data Capture (CDC) streams. When a source database updates a user's profile, a CDC tool like Debezium captures the log event, a stream processor computes the new feature value, and the result is upserted into the online store. This decoupled architecture ensures that the online store is a read-only serving layer, preventing operational load from affecting the source-of-truth databases.

FEATURE STORE COMPONENTS

Online Store vs. Offline Store

A comparison of the two primary storage and serving layers within a feature store, designed for real-time inference versus large-scale batch training.

FeatureOnline StoreOffline Store

Primary Purpose

Low-latency feature serving for real-time predictions

High-throughput storage for historical training data

Latency Profile

< 10 ms

Seconds to minutes

Query Pattern

Key-value lookups by entity ID

Distributed SQL or Spark scans over time ranges

Data Freshness

Real-time or near-real-time (streaming)

Batch snapshots (hourly/daily)

Storage Engine

Redis, DynamoDB, Cassandra

S3, HDFS, Snowflake, BigQuery

Point-in-Time Correctness

Typical Use Case

Serving feature vectors to a model endpoint during a user request

Generating training datasets with historical feature values

Scalability Dimension

High QPS, low payload

High volume, high throughput

ONLINE STORE FAQ

Frequently Asked Questions

Clear, technical answers to the most common questions about the low-latency serving layer of a feature store.

An online store is the low-latency, real-time serving database component of a feature store designed to serve pre-computed feature vectors to machine learning models during online inference. It acts as a high-performance cache, storing the latest values for features keyed by a unique entity ID (such as a user ID or product SKU). When a prediction request arrives, the model serving infrastructure queries the online store via a Serving API (typically gRPC or REST) to retrieve the necessary features in milliseconds. Unlike the offline store, which handles large-scale historical data for training, the online store is optimized for point lookups, ensuring that models act on fresh, consistent data without querying slow transactional databases.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.