AlgoViz

Design a Fraud Detection System

hard 50 min

Judge 10,000 payments a second, each within 100 ms, when only one in a thousand is fraud and the truth arrives weeks later.

Where it shows up

The same pattern appears across everyday software.

  • A hundred milliseconds

    Stripe's engineering blog says Radar decides in under 100 milliseconds and looks at more than 1,000 characteristics of a payment.

  • A rare event

    The same post puts online payment fraud in the order of 1 in 1,000 payments.

  • Documented limits

    Stripe's documentation gives a risk score from 0 to 99, where 65 is elevated and 75 is high by default.

  • Low-risk exemption

    EU rules let a payment provider skip strong authentication when a real-time risk analysis finds low risk, below amounts tied to its fraud rate.

  • Decisions by machine alone

    Article 22 of the GDPR limits decisions based solely on automated processing that significantly affect a person, which is one reason for a route to a human.

  • Counting in a stream

    Apache Flink's blog has a case study of fraud detection with rules that can be changed while the job runs.