Feature store with point-in-time correctness

DesignHard45 minUber and Stripe style

Your task

Design a feature store for a fraud-detection model where the same feature definitions (e.g. 'card transaction count in last 24h', 'avg basket value last 7d') are used both to train offline on years of historical data and to score transactions online at 5k TPS with a 20ms feature-fetch budget. The bank's biggest recurring problem is training/serving skew: models look great offline and underperform in production. Design the store to make online and offline features provably consistent, and explain how you guarantee point-in-time correctness when generating training data.

It covers

  • Online offline skew
  • Point in time
  • Consistency