Usage billing has two enemies: late events and backfills. If you don’t plan for them, your invoices won’t reconcile.
A robust approach
- Store raw usage events immutably.
- Aggregate into daily, weekly, or monthly windows with a short buffer for late-arriving events.
- Allow recomputation for a window when late events arrive.
- Keep reconciliation outputs per invoice period.
Neruba keeps raw usage immutable and recomputes aggregates deterministically for late events.
Want the full sequence by email? Subscribe to Neruba Engineering Notes.