Platformatory | Forward Deployed Engineering Firm: Data, AI & Modernization

Case Studies Risk / Fraud

Bay Area startup

Real-time returns fraud detection

Returns-fraud decisioning with fail-closed sub-50ms p99 and fail-open batch paths—adaptive risk tree with rule CEP and Flink ML ensembles, RLHF continual learning on weighted real-time features. MVP with design partners in ~6 months.

  • AI/ML
  • Product Engineering
  • Performance Engineering

Apache Kafka · Apache Flink · Flink ML · Akka · Scala

  1. Customer

    A Bay Area startup where returns fraud is a product problem: abuse at the edge of the brand promise, decided inside storefront latency budgets.

  2. Challenge

    Batch scores went stale before returns finalized. Static rules got gamed. Risk needed online decisioning that could track adversarial drift—and a deliberate choice between fail-closed online and fail-open batch, not a single brittle mode.

  3. Work

    Owned the full product surface, including the API layer, and service golden signals (saturation, latency, throughput, error rates).

    Built on Kafka, Flink, Akka, and Scala. The decision path was an adaptive, risk-based tree: rule-based complex event processing plus an ensemble of models on Flink ML.

    Two operating modes: fail-closed online inference at sub-50ms p99, and fail-open batch. RLHF with continual learning on weighted real-time features kept the ensembles current under adversarial drift.

  4. Impact

    1. Sub-50ms p99 fail-closed inference; fail-open batch as a deliberate alternative
    2. Adaptive risk tree: rule CEP + Flink ML ensembles; RLHF continual learning on weighted real-time features
    3. Full ownership through the API layer and golden signals
    4. Strong MVP with design partners in ~6 months

All case studies