A production-style credit-risk endpoint: LightGBM behind FastAPI, strict schema validation at the edge, and Population Stability Index drift monitoring over a rolling window of live traffic.
The service compares the last 100 scored requests against the training distribution
using Population Stability Index, alerting above 0.2. Send each population
and compare: traffic matching the training data should stay quiet, a shifted population
should not. Requests are sampled from a distribution, not replayed from one
payload, because a window of 100 identical requests has zero variance and scores a
large PSI even for a perfectly ordinary applicant.