Usage-Based Billing in Elixir and Phoenix: A Complete Guide
How to build usage-based billing in Elixir and Phoenix: count usage in ETS, enforce plan limits atomically, and invoice overage through Stripe Billing Meters.
By Liam Killingback
We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
The blog
Tips, tricks & guides on building with Phoenix and Elixir.
How to build usage-based billing in Elixir and Phoenix: count usage in ETS, enforce plan limits atomically, and invoice overage through Stripe Billing Meters.
By Liam Killingback
Real-time Phoenix usage metering without touching the database on every request: atomic ETS counters, a flusher to Postgres, PubSub fan-out to LiveView, and cluster-wide totals.
By Liam Killingback
Phoenix feature gating and entitlements from one compile-time plan definition: hard caps that hold under concurrency, metered overage, feature flags, and status-aware downgrades.
By Liam Killingback