Building a multi-tenant SaaS application presents numerous architectural challenges, not least of which is robust and scalable billing. While subscription-based models are common, many modern SaaS offerings benefit from usage-based billing, where customers pay for what they consume. This model, w…