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.
Glossary
Online Store

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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
| Feature | Online Store | Offline 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 |
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.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
The online store is a critical component within a broader feature store architecture. Understanding these adjacent concepts is essential for designing a complete, production-grade machine learning infrastructure.
Feature Vector
A one-dimensional array of numerical values representing the aggregated features for a specific entity at a specific point in time. This is the payload the online store returns to the model.
- Structure: A concatenation of values from multiple feature groups joined on a single entity key.
- Encoding: All categorical values must be pre-encoded (e.g., one-hot or embeddings) before storage.
- Sparsity: Vectors can be dense or sparse; online stores must handle both efficiently.
- Schema Enforcement: The feature registry defines the exact order and type of each element.
Feature Freshness
A metric defining the maximum acceptable age of a feature value in the online store. Stale features cause models to act on outdated information, degrading prediction accuracy.
- Real-time Features: Require sub-second freshness, often served via streaming pipelines.
- Near-real-time Features: Tolerate minute-level staleness, updated by incremental materialization.
- Batch Features: May be hours or days old, representing long-term aggregates.
- Monitoring: Track freshness lag as a core data observability metric to trigger alerts.
Point-in-Time Correctness
A data engineering guarantee that feature values used for model training are reconstructed exactly as they existed at a specific historical timestamp. This prevents data leakage from the future.
- Time Travel: The online store's ability to query historical values is essential for generating accurate training datasets.
- Leakage Prevention: Ensures a model trained on yesterday's data did not accidentally see tomorrow's outcome.
- Entity Timestamp: Every feature value is stored with the exact timestamp of its validity.
- Training Dataset Join: The offline store uses this guarantee when joining features to labels.
Feature Cache
An in-memory storage layer that holds frequently accessed feature vectors to reduce the latency and load on the primary online store database.
- Redis/Memcached: Common technologies for implementing a feature cache.
- TTL: Time-to-live settings must align with feature freshness requirements.
- Cache Warming: Pre-loading the cache with high-traffic entity keys before peak load.
- Staleness vs. Latency: A trade-off; a longer TTL reduces latency but increases the risk of serving stale data.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us