News for hackers. Stuff that matters.
Re:Show HN: Flexprice: Open-Source Usage-Based Billing Toolkit by Koshima on Monday June 30, 2025 @09:18AM (#44422949)
Great question!

Our approach focuses on: - Fire-and-forget ingestion with in-memory queues so events don’t block product requests - Strict idempotency tokens tied to every event, enforced at the API layer - Lightweight retry logic that prevents double-counting but guarantees delivery under transient failures

Storage-wise, we’ve leaned on a mix of time-series DBs for raw events and pre-aggregated summaries for billing views.

Would love to swap notes on failure patterns or queue setups if you’ve dealt with similar scale.

There are no comments on this comment yet.