Rebuilt the billing webhook pipeline
Redesigned payment-event ingestion from a cron-based poller into an idempotent webhook pipeline handling ~40k Stripe events/day with zero dropped reconciliations.
Sample note — this is seeded demo data so you can see what a GitProof note looks like. Real notes are generated from your actual PRs and every evidence link resolves on GitHub.
Jane inherited a billing system that reconciled payments by polling the provider every five minutes. Under load, polls overlapped, events were double-processed, and finance spent hours each week chasing mismatched invoices.
Across she replaced the poller with a webhook pipeline built around an event journal table: every incoming event is journaled first, keyed by the provider's event id, and processing is a pure function of journal state. Duplicate deliveries become no-ops by construction rather than by careful code.
The follow-up handled the ugly real-world case — a provider outage that replayed three days of events out of order. Her tombstoning approach let the pipeline replay history safely, and the dead-letter queue added in 8f31c2a gave unprocessable events a place to land instead of blocking the stream.
Outcome: ~40k events/day processed with exactly-once semantics, and the weekly reconciliation review shrank from hours to a dashboard glance.