learn

Real-Time Decisioning: What It Is, Latency Budgets, and Where Rules Beat ML

By Art Kukharenko · Published · Updated

Browse learn resources

Real-time decisioning is software that picks the best action for one customer at the moment of an interaction: an offer, message, content block or no action at all. It combines current context, eligibility rules, scoring models and business constraints, and answers fast enough for the channel, from under 100 milliseconds on a web page to a few seconds for push or email. It usually reads profiles from a customer data platform (CDP).

Who this is for: architects, marketing technology leads, data scientists and risk owners. You will get the decision loop, a latency table by channel, a rules-versus-ML comparison, audit requirements, vendors and a checklist. More explainers: the Learn hub.

The decision loop

Whatever a vendor calls its parts, an engine runs the same seven steps:

  1. Context. A request arrives with identity, channel, placement and live signals (page, cart, session, last event). Profile and features are fetched by key.
  2. Eligibility. Hard rules decide which candidate actions are allowed: consent, product holds, suitability, regulatory suppression. Adobe describes decision rules as constraints applied to a profile to determine eligibility 3.
  3. Scoring. Models estimate propensity, value or risk for each eligible action. Pega describes predictive and adaptive models scoring thousands of possible actions against a customer's context 1.
  4. Arbitration. Eligible, scored actions are ranked into a winner. Pega says its engine weighs each eligible action against relevance, value and configured limits 1; Medallia describes built-in arbitration that ranks decisions by propensity 5; Adobe ranks eligible offers by priority 3.
  5. Constraints. Frequency caps, quiet hours, budgets and conflict rules trim the result. Adobe documents total caps and per-profile caps 3. Products differ on whether constraints run before or after ranking.
  6. Delivery. The answer returns by API or SDK, or triggers a send.
  7. Feedback. Impressions, clicks, conversions and non-responses return to update models, caps and logs. Pega says its adaptive models learn from real-time data 2.

Latency budgets by channel

No standard sets decisioning latency. Budgets come from user-experience thresholds and channel behaviour. Jakob Nielsen's long-cited limits are 0.1 seconds for a system to feel instantaneous, 1 second for flow of thought to stay uninterrupted and 10 seconds for attention 8. Core Web Vitals add that a good Largest Contentful Paint is 2.5 seconds or less 9 and a good Interaction to Next Paint is 200 milliseconds or less 10, so a decision call in the rendering path draws on a shared budget. Pega claims answers in under 200 milliseconds 1 and SAS claims milliseconds 7; both are vendor statements, not benchmarks.

Scroll horizontally to compare all columns ↔

Comparison — source references are listed below
ChannelWhere the decision runsPlanning budgetNotes
Web page or app screen (inline offer, content, next-best-action tile)Synchronous API or edge call during renderUnder 100 ms end to endNear the 0.1 s "instant" limit 8; cache or fall back to a default on timeout
Contact centre, agent assist, chatAPI call during the conversationHundreds of ms, under 1 sOne second keeps flow of thought 8
Event-triggered push or in-appEvent, decision, providerSecondsDelivery is not deterministic: Firebase says normal-priority messages to backgrounded apps may be delayed 11
Triggered email or SMSEvent or send-time decisionSeconds to minutesCorrect eligibility and consent at send time matter more than speed
Batch campaigns, score refreshScheduled jobMinutes to hoursFine for slow attributes such as tenure or lifetime value

These are starting points to agree as service-level objectives, not standards. Measure p95 and p99, not averages. Time usually goes to the network round trip, profile and feature reads, model scoring, rules evaluation and logging. Keep profile and features to one key-value read, precompute heavy features, log asynchronously and return a default action on timeout.

Rules, machine learning and hybrid arbitration

Where rules win

Google's Rules of Machine Learning opens with the advice not to be afraid to launch without machine learning, and not to use it until you have data 12. Rules win on:

  • Eligibility and compliance: deterministic, testable, easy to explain.
  • Cold start and low volume: no outcome data to learn from.
  • Explicit policy: never offer product X to segment Y.
  • Specific reasons: Regulation B requires adverse-action reasons that relate to the factors actually considered or scored 14, and the CFPB says creditors may not use complex algorithms if they cannot give specific, accurate reasons 13.

Where machine learning wins

Ranking many candidates, adapting to feedback and capturing interactions no rule author would write. The same Google guide notes that a complex heuristic becomes unmaintainable and recommends machine learning over one 12.

The hybrid pattern

Production systems combine them: rules gate eligibility, models rank, rules enforce constraints, and business weights tune the final order.

Scroll horizontally to compare all columns ↔

Comparison — source references are listed below
ApproachStrengthWeaknessWhat to log
Rules (decision tables, DMN)Deterministic, easy reason codesRule sprawl, manual upkeepRule ID and version
ML scoringRanks many candidates, adaptsNeeds data, drifts, opaqueModel version, feature snapshot, reason codes
Hybrid arbitrationRules for must and never; ML for which firstMost moving partsRule trace and scores together

Open-source rules engines include Drools, part of Apache KIE under the Apache 2.0 licence with DMN support 15, and the MIT-licensed GoRules ZEN Engine, written in Rust, which claims microsecond evaluation (unverified here) 16.

Feature freshness

A feature is a value computed from customer data, such as orders in the last 30 days or failed logins in the last 10 minutes. Decide each feature's maximum age. Nightly batch suits slow attributes; seconds-level features need a stream processor and an online store.

Warehouses help but have limits: Snowpipe Streaming reports ingest-to-query latency as low as 5 seconds 18, and dynamic tables have a 60-second minimum target lag 19 (see composable vs packaged vs private). Feast, an open-source feature store, serves historical features for training from stores such as Snowflake and BigQuery, and online features for inference from stores such as Redis, DynamoDB and Cassandra 17. Using one definition for both avoids training-serving skew. If a feature is older than its maximum age, drop it or fall back to a default, and log the feature timestamps used.

Explainability and audit of decisions

A decision log should capture: decision ID and time; identity and channel; input and feature snapshot with timestamps; candidates considered; rules fired and constraints applied; scores and model version; the winner; and the outcome. Pega says each decision records what was chosen, what was rejected and why 1; FICO says each decision is logged, traced and explained 6. Both are vendor claims, so test them in a pilot.

Regulation sets the stakes:

  • GDPR Article 22: people have the right not to be subject to decisions based solely on automated processing, including profiling, that have legal or similarly significant effects; where an exception relies on contract or explicit consent, safeguards include human intervention and the right to contest 20. Most marketing offers fall outside it; credit, insurance and employment decisions may not.
  • EU AI Act: marketing personalisation is not high-risk by itself, but credit scoring and life or health insurance pricing are listed in Annex III 21. Regulation (EU) 2026/1744 moved stand-alone high-risk obligations to 2 December 2027 21.
  • US credit: Regulation B and the CFPB position above 1314.

See explainable AI for customer decisions and the EU AI Act for marketing and customer decisioning. An immutable, append-only store is the right shape for decision evidence, because entries cannot be quietly edited later.

Where decisioning runs: SaaS API or inside your own environment

Scroll horizontally to compare all columns ↔

Comparison — source references are listed below
PatternExamplesStrengthsTrade-offs
SaaS decision APISalesforce Personalization, using Data 360 profiles 4; Adobe decision management on Adobe Experience Platform profiles 3; Medallia Experience Orchestration 5Fast to start; vendor runs scale and modelsProfile data copied to the vendor; network hop; residency and subprocessor review

| Embedded engine in your service | Drools or GoRules plus your model server and a feature store 151617 | Full control; in-process latency | You build arbitration, logging, UI and governance |

SaaS is the right answer for marketing-led web and app personalisation without residency limits and with a small operations team. Run decisioning inside your own environment when the data cannot leave (balances, clinical context, self-exclusion flags), when latency is tight, or when sovereignty applies. In a customer-owned deployment such as PrivyCDP, profile data and the audit ledger stay in your environment, so an engine running beside them adds no external data hop.

Vendors and landscape

For orchestrating what happens after a decision, see customer journey orchestration; for banking and gambling examples, see next-best-action inside the bank and responsible gambling interventions.

Implementation checklist

  • Define one decision, one placement and a p95 and p99 latency objective.
  • List candidate actions and owners; write eligibility rules first.
  • Make consent and suppression a hard gate and test it with withdrawn consent.
  • Start with rules and a priority order; add machine learning when outcome data exists.
  • Give every feature a maximum age and a fallback.
  • Set a default action and a timeout so failure degrades gracefully.
  • Log every decision with inputs, candidates, rule trace, scores and versions.
  • Keep a holdout group so lift is measured, not assumed.
  • Load-test at peak and with stale features.
  • Review credit, insurance and employment decisions against Article 22, Regulation B and the AI Act.
  • Decide where it runs (SaaS or your environment) before choosing an engine.

Frequently asked questions

What is real-time decisioning?

It is choosing the best action for a specific customer during an interaction, using live context, eligibility rules, models and constraints, and returning the answer within the channel's latency budget. The action can be an offer, content, a message, a service route or deliberately nothing. It differs from batch segmentation, which decides ahead of time for groups.

What is the difference between a decisioning engine, platform and decision engine software?

Vendors use the terms loosely. An engine evaluates rules and models to return one decision. A platform adds profiles, content or offers, channels, testing and reporting around that engine. "Decision engine software" covers both, from open-source rules libraries such as Drools to suites such as Pega, FICO and SAS 16715.

What is a next best action engine?

A next best action engine selects the most relevant action for each customer across channels at a given moment. Pega defines the approach as combining artificial intelligence with real-time interaction data, with business rules setting eligibility 2. In practice it is the arbitration step of the decision loop plus the models and rules that feed it.

Rules engine vs machine learning decisioning: which should I use?

Use both. Rules suit eligibility, compliance and explicit policy; machine learning suits ranking many candidates once you have outcome data 12. Start with rules, add models where lift is measurable, and keep rules as guardrails around the model's output. A hybrid stays explainable while still learning from feedback.

What latency does real-time decisioning need?

It depends on the channel. For inline web and app content, plan for under 100 milliseconds end to end, near the 0.1-second threshold for feeling instantaneous 8. Agent and chat use cases tolerate hundreds of milliseconds, push and email seconds, and batch minutes to hours. Agree p95 and p99 objectives per channel.

Do I need a customer data platform for real-time decisioning?

You need profiles and features available by key within the latency budget. A customer data platform is one way to supply them; a feature store or operational profile store is another. What matters is identity resolution, fresh features and a consent flag the engine can check at decision time.

Is real-time decisioning regulated?

Some of it. Solely automated decisions with legal or similarly significant effects fall under GDPR Article 22 20, credit decisions under Regulation B 14, and some uses under the EU AI Act 21. Ordinary marketing offers are usually outside these, but consent and marketing rules still apply.

Sources

  1. Pega, Customer Decision Hub Open source
  2. Pega, Next Best Action Open source
  3. Adobe Experience League, Decision management Open source
  4. Salesforce Personalization Open source
  5. Medallia Experience Orchestration Open source
  6. FICO Platform Open source
  7. SAS Intelligent Decisioning Open source
  8. Nielsen Norman Group, Response times Open source
  9. web.dev, Largest Contentful Paint Open source
  10. web.dev, Interaction to Next Paint Open source
  11. Firebase, Message priority Open source
  12. Google, Rules of Machine Learning Open source
  13. CFPB, Circular 2022-03 Open source
  14. CFPB, Regulation B 1002.9 Open source
  15. Apache KIE Drools — and Open source · Additional source
  16. GoRules ZEN Engine Open source
  17. Feast Open source
  18. Snowflake, Snowpipe Streaming Open source
  19. Snowflake, Dynamic tables Open source
  20. GDPR Article 22 — (unofficial reproduction; official Open source · Additional source
  21. Regulation (EU) 2026/1744 — AI Act Annex III Open source · Additional source
  22. Apache Unomi Open source

Put this evaluation into practice.

Explore the customer data platform

Further reading

Published: · Updated:

Publication date recorded for the approved release. Editorial updates do not establish legal approval or a customer result.

Need help?

Ask the PrivyCDP Assistant