News for hackers. Stuff that matters.
Re:Show HN: Flexprice: Open-Source Usage-Based Billing Toolkit by prathamxd on Monday June 30, 2025 @09:43AM (#44423187)
Impressive, Koshima! Billing at scale ,especially with high-frequency event ingestion and credits—is notoriously tricky, so it's great to see an open-source approach to solving these pain points. The real-time debugger and usage analytics API sound particularly useful. Curious how you handle deduplication and idempotency under heavy concurrency. Looking forward to trying this out!
Re:Show HN: Flexprice: Open-Source Usage-Based Billing Toolkit by Koshima on Monday June 30, 2025 @09:47AM (#44423221)
Appreciate it. We enforce idempotency at the event level using client-provided deduplication keys, so even with high concurrency or retries, the billing pipeline stays consistent.

For internal retries, we batch in-memory and attach unique IDs before dispatch to avoid double-counting.