Product & Platform

Metrics Billing Platform: why we open-sourced usage-based billing on Workers and Postgres

FinOps teams need idempotent ingestion, reconciled invoices, and an audit trail—our template stack marries Cloudflare Workers, D1, and RDS.

Michael Chen

Michael Chen

Lead Architect

January 18, 20269 min read2569
Metrics Billing Platform: why we open-sourced usage-based billing on Workers and Postgres

Usage-based billing sounds simple until payment webhooks, partial refunds, and multi-tenant isolation collide. Metrics Billing Platform is the stack we extracted so others can fork instead of rediscovering the sharp edges.

Non-negotiables

  • Idempotent event ingestion with explicit replay semantics
  • Monthly invoice jobs that can be re-run without double-charging
  • Razorpay reconciliation paths tuned for India-first flows

Product page and repository links →

Tags:
Undash-copProduct engineeringShipping software

Discover More Insights

Explore our collection of articles on technology, automation, and business growth.