SpinTheMic
Pro

Interview practice question

Designing real-time velocity features

Machine Learning · Feature Engineering · Experienced

Fraud detection needs "number of transactions per card in the last 10 minutes" at prediction time. How do you build it end to end?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Stream transactions through Kafka; compute sliding window counts in Flink or similar.
  • Store latest values in online store (Redis/feature store) keyed by card.
  • Include the current transaction carefully (before or after).
  • Backfill same feature historically for training using identical logic.
  • Monitor freshness and handle late events.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics