Catalogue / hubspot-2024-prediction-engine

HubSpot's Prediction Engine scores CRM objects online from Kafka update events and offline in batch, cutting work with thresholds and debouncing

HubSpot, 2024. Prediction Engine, the shared ML inference platform for predictive scoring in the HubSpot CRM.

Organisation
HubSpot
Evidence
Reported from production
Source
Behind HubSpot AI: How Does Prediction Engine Score Millions of CRM Objects Daily?

HubSpot Engineering Blog, published 2024-11-15

Records

Decision#d1

Build one object-agnostic inference platform for all predictive use cases instead of a pipeline per team

Decision#d2

Write a score only when it moves past a delta threshold; in offline inference, request explanations only for scores that pass

Decision#d3

Filter object-update events down to the most critical properties before online re-scoring

Decision#d4

Debounce updates so each object is scored at most once per configurable window

Decision#d5

Put large and small portals on separate queues when scoring a newly upgraded portal

Decision#d6

Re-score untouched objects in scheduled batch jobs that read daily snapshots, skipping very low scores

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.