WritingBilling

Billing notes

Metering, ledgers and the math behind a fair bill, noted as the SERVERIZZ billing rebuild happens.

Billing

Hourly billing at SERVERIZZ is the monthly price divided by 672. That's 28 days of hours, so no month ever bills more than the monthly price.

Billing

One rule for the billing ledger: you never edit money. A correction is a new row, and the database itself refuses anything else.

CREATE TRIGGER ledger_append_only
  BEFORE UPDATE OR DELETE ON ledger_entries
  FOR EACH ROW EXECUTE FUNCTION reject_ledger_change();
That's every billing note so far. The whole story is in the case study.01 · Billing · Case studyA usage billing ledger that can't double-chargeRead the case study

Contact · reply by email

Say hello

Tell me what you're working on. I read everything and reply by email.

What's it about? Optional
0 / 2000
Rather not use a form?Message me on LinkedIn

I only use your details to reply. No mailing list.