Problem
A bank that wants to stop payment fraud has to keep shipping new detection controls, because fraudsters pivot to a new scam each time one is blocked. Fraud is also rare: at Monzo, only 1 in every 10,000 transactions is fraud. Each wrong intervention adds friction for a legitimate customer. It must also handle millions of transactions per day with minimal latency on the payment hotpath.
Example from the article: a model that predicts fraud from the payment amount alone, run only for bank transfers, can stop the payment and warn the user.
Solution in brief
Monzo splits the decision into four steps: choose which controls to run, load their features, run the controls, apply the resulting actions. Controls are pure functions in a network of three types (detectors, action controls, action selection), features come from a feature graph (DAG), and actions go through a stateful applier with rate limits.
Questions this case answers
- How to design a real-time decision platform where detection logic changes often and a wrong decision adds friction for legitimate users
- How to serve features of different freshness to a decision engine under a strict latency budget
- How to build a payment fraud platform where new controls can be added and changed quickly without rebuilding the system?
- How to compute fraud-model features on the payment hotpath without adding noticeable latency?
Tools and methods
- Engine — Go microservice that runs the four steps, with a controls repository and executor inside
- Starlark controls — pure functions, so they can be backtested on historic data
- Detectors, action controls, action selection control — a network of controls with separate jobs
- Feature Loader (DAG) — computes just-in-time, near-real-time and batch features
- Action Applier — stateful service with per-action rate limits
- BigQuery — stores every control's inputs, outputs and metadata for monitoring
Google or a one-time email code. No password.