Book a free call

How to Design a Predictive Analytics Architecture

A predictive analytics architecture moves data from source systems to a scored prediction. Here is how the parts fit together, from features to monitoring.

Hertiv engineering teamReviewed by a senior engineer
8 min read
How to Design a Predictive Analytics Architecture
On this page

Short answer

A predictive analytics architecture is the design of the system that turns raw data into scored predictions: sources feed a warehouse, a feature store supplies the same features for training and scoring, a training pipeline builds and registers models, and a scoring layer serves predictions in batch or real time, with monitoring that watches for drift.

What is a predictive analytics architecture?

A predictive analytics architecture is the design of the system that turns raw data into scored predictions, and how its parts connect. It covers where data comes from, how features are built and shared, how models are trained and registered, how predictions are served, and how the system is watched after launch.

The parts form a flow. Source systems send data into a warehouse or lakehouse, the feature store turns that data into features, the training pipeline builds a model from the features, and the scoring layer applies the model to new data. Monitoring sits across the whole flow, checking that the data, the features and the predictions still look right.

PartWhat it doesRuns when
Sources and warehouseCollect and clean raw dataOn a schedule
Feature storeBuild and serve featuresTraining and scoring
Training pipelineTrain, test and register modelsOn a schedule or on change
Scoring layerApply the model to new dataBatch or real time
MonitoringWatch data, features and predictionsAlways

Most teams build this flow in stages, starting with one prediction and one data source. A churn forecast for one product needs far less plumbing than a company-wide scoring platform, and the architecture should grow with the number of predictions, not ahead of them.

Where does the data come from?

Predictions start with source systems: the CRM, the billing system, the product database, support tickets and web events. Each source has its own shape, its own update rhythm and its own gaps, so the first job is to list them, name an owner for each, and record what each field means. A field nobody can define is a field the model should not use.

The sources land in a warehouse or lakehouse, where the data is cleaned and joined into tables the team can query. Cleaning means fixing formats, removing duplicates and handling missing values in a documented way, not silently. The warehouse keeps history, so a model can be trained on last year's data and tested on this year's.

Data quality is checked at the door. Simple checks run on every load: row counts within the expected range, no missing keys, dates in order. When a check fails, the load stops and someone is told, instead of bad data flowing into features and quietly changing predictions. See what predictive analytics is for the data it needs in more detail.

What does the feature store do?

The feature store is the shared place where features live, so training and scoring use the same numbers. A feature might be a customer's orders in the last 30 days, the average time to pay an invoice, or the number of support tickets in the last month. If training and scoring compute the same feature differently, the model scores with numbers it never learned from.

Features come in two speeds. Batch features are computed on a schedule, such as a customer's 90-day order history, and stored for fast lookup. Real-time features are computed at scoring time, such as the items in the current basket. The store keeps both behind one interface, so the scoring code does not need to know where a feature came from.

The store also records how each feature was built and when it was last updated. That record matters when a prediction looks wrong: the team can check whether the feature values were fresh or stale, and whether the definition changed since training. A feature with no owner and no definition is a risk, not an asset.

How does the training pipeline work?

The training pipeline turns features into a model. It starts by defining the prediction target, such as whether a customer will leave in the next 90 days, and the point in time the prediction is made, so the model never learns from data that would not have existed then. Getting the target and the timing right matters more than the choice of algorithm.

The pipeline then trains one or more models on past data, tests them on data the models have not seen, and compares them on the metric the business cares about, such as the share of leavers caught or the error in a forecast. The winning model is registered with its version, its training data and its test scores, so any prediction can be traced back to the model that made it.

Training runs on a schedule or when the data changes, not by hand. A pipeline that only one person can run by hand is a pipeline that stops when that person is away. The schedule, the tests and the registration are all written down as code, so a retrain is a repeatable run rather than a fresh project. See how to build a predictive analytics model for the modelling steps in more detail.

How does scoring work: batch or real time?

Scoring is applying the registered model to new data, and the choice is between batch and real time. Batch scoring runs on a schedule, such as nightly, and writes predictions to a table that other systems read. It suits forecasts, churn lists and weekly demand plans, where a prediction that is hours old is still useful. See how predictive analytics works for the modelling behind the scores.

Real-time scoring answers one request at a time, such as scoring a transaction as it arrives or a visitor as they browse. It needs the model and the features ready in milliseconds, so the feature store must serve online features and the model must be small and fast. Real-time scoring costs more to run, so it is worth it only when the decision cannot wait.

Many systems use both. A nightly batch run scores the whole customer base for the next day's campaigns, while a real-time path scores the few cases that need an instant answer. The two paths share the same model and the same feature store, so a prediction means the same thing whichever path made it.

How do you monitor predictions after launch?

Monitoring watches three things: the input data, the features and the predictions. Input checks catch a source that stops sending data or changes format. Feature checks catch a feature whose values drift from what training saw. Prediction checks catch a model whose output mix changes, such as suddenly predicting churn for everyone.

Drift is the slow change that breaks models. Customer behaviour shifts, prices change, a new product arrives, and the patterns the model learned stop matching the world. Monitoring tracks drift with simple measures, such as the average prediction and the share of each outcome, and alerts when they move beyond a set range.

When monitoring alerts, the team has a set response: check the data first, then the features, then the model. Most alerts trace back to a data change, not a model fault, so retraining on the same broken data would not help. Retraining happens after the data is fixed, and the new model is tested against the old one before it takes over.

How do you design a predictive analytics architecture in 6 steps?

Designing a predictive analytics architecture is a sequence of decisions, one per part of the flow, made before the first model is trained. The steps below fit a first system with one prediction, and each part can be extended as more predictions are added. For the team process around these steps, see how to implement predictive analytics.

  1. Pick the prediction. Name the target, the decision it will change, and how success will be measured.
  2. List the sources. Name each source system, its owner and its update rhythm, and record what each field means.
  3. Set up the feature store. Define the features, build the batch path first, and add real-time features only where a decision needs them.
  4. Build the training pipeline. Fix the target and timing, train and test models, and register the winner with its test scores.
  5. Choose the scoring path. Use batch scoring by default, and add real-time scoring only for decisions that cannot wait.
  6. Add monitoring. Watch the data, the features and the predictions, and set the response for each kind of alert.

Start with one prediction end to end, then add more. A flow that serves one prediction well is a better base than a platform built for ten predictions nobody asked for.

Example (hypothetical): a retailer designs a demand forecast

Example (hypothetical): a retailer with 800 stores wants a weekly demand forecast for its top 200 products. The team picks one prediction, units sold next week per product per store, and lists three sources: the point-of-sale system, the warehouse system and the promotions calendar.

Features come from the store: sales in the last 4 and 12 weeks, the same week last year, the current promotion flag and the stock on hand. The training pipeline builds a model on two years of history and tests it on the last 8 weeks. Batch scoring runs every Monday morning and writes 160,000 predictions, which is 200 products times 800 stores, to a table the buyers read.

After four weeks the forecast error is 12 in 100 on average, and the buyers cut stockouts by a third. Monitoring then flags a drift: a new product line has no history, so its forecasts rely on the category average until it builds 12 weeks of its own sales. The team records that rule in the feature store so the next review knows why those forecasts look different.

What are the common mistakes?

The most common predictive analytics architecture mistakes are training on data the model could not have known, using different features in scoring than in training, and shipping with no monitoring.

  • Target leakage. Training on data from after the prediction point makes test scores look good and real predictions fail.
  • Training-scoring skew. Features computed one way in training and another way in scoring make the model score with unfamiliar numbers.
  • No monitoring. A model with no drift checks can go stale for months while its predictions quietly get worse.
  • Real time by default. Building a real-time path for decisions that could wait a day adds cost and failure modes for no gain.
  • Too many predictions at once. Starting with ten predictions spreads the team thin and leaves none of them properly monitored.

Review the architecture when a new prediction or source is added. Each addition should reuse the same feature store, training pipeline and monitoring, rather than building a second system beside the first.

Key takeaways

  • The flow runs source systems to warehouse to feature store to training to scoring to monitoring
  • A feature store keeps training and scoring on the same feature definitions
  • Batch scoring suits forecasts and lists; real-time scoring suits decisions that cannot wait
  • Register every model with its version, training data and test scores
  • Monitor data, features and predictions, and check the data before retraining

Frequently asked questions

What is a predictive analytics architecture?

It is the design of the system that turns raw data into scored predictions: sources feed a warehouse, a feature store supplies shared features, a training pipeline builds and registers models, and a scoring layer serves predictions in batch or real time, with monitoring across the whole flow.

What is a feature store?

It is the shared place where features live so training and scoring use the same numbers. A feature might be orders in the last 30 days or tickets in the last month. The store serves batch features computed on a schedule and real-time features computed at scoring time, behind one interface.

Should predictions be scored in batch or real time?

Use batch scoring by default: it runs on a schedule and suits forecasts, churn lists and weekly plans. Add real-time scoring only when a decision cannot wait, such as scoring a transaction as it arrives, since it costs more to run and needs features ready in milliseconds.

What is target leakage?

It is training a model on data from after the prediction point, which the model could not have known when the prediction was made. Test scores look good because the model has seen the answer, but real predictions fail. Fix the prediction point first, then train.

How often should a predictive model be retrained?

Retrain on a schedule, such as monthly, or when monitoring shows drift, and always after the underlying data is fixed. Test the new model against the old one on held-out data before it takes over, and register the new version with its training data and test scores.

What should monitoring watch in a predictive system?

Three things: the input data, the features and the predictions. Input checks catch a source that stops or changes format, feature checks catch values drifting from training, and prediction checks catch a model whose output mix changes. Alert on each, and check the data before retraining.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: AI and agent systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Building a predictive analytics system and need the architecture right? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Predictive Analytics service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to contact@hertiv.com.

Prefer email? Write to contact@hertiv.com
Estimate costBook a call