<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/github---liamkillingback-aurora-meter-real-time-usage-metering-plan-entitlements-and-stripe-ready-d09rwmofh" -->

---
title: GitHub - liamkillingback/aurora-meter: Real-time usage...
description: Aurora Meter is an Elixir/Phoenix library that provides real-time usage metering, plan entitlements, and Stripe-ready billing primitives directly in-app rather...
canonical: https://daily.dev/posts/github---liamkillingback-aurora-meter-real-time-usage-metering-plan-entitlements-and-stripe-ready-d09rwmofh
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: GitHub - liamkillingback/aurora-meter: Real-time usage metering, plan entitlements, and Stripe-ready billing primitives for Phoenix. | daily.dev
og:description: Aurora Meter is an Elixir/Phoenix library that provides real-time usage metering, plan entitlements, and Stripe-ready billing primitives directly in-app rather...
og:url: https://daily.dev/posts/github---liamkillingback-aurora-meter-real-time-usage-metering-plan-entitlements-and-stripe-ready-d09rwmofh
og:image: https://api.daily.dev/og/posts/D09rWMofh.png
og:image:alt: GitHub - liamkillingback/aurora-meter: Real-time usage metering, plan entitlements, and Stripe-ready billing primitives for Phoenix.
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub - liamkillingback/aurora-meter: Real-time usage metering, plan entitlements, and Stripe-ready billing primitives for Phoenix.

**[ElixirStatus](https://daily.dev/sources/elixirstatus)** · 7 min read · 0 upvotes · 0 comments

## Summary

Aurora Meter is an Elixir/Phoenix library that provides real-time usage metering, plan entitlements, and Stripe-ready billing primitives directly in-app rather than as a hosted service. It uses ETS counters for atomic, database-free increments and quota checks, with Phoenix.PubSub for live updates and LiveView components for dashboards. The free MIT core covers metering, entitlements, and Postgres persistence, while a separate commercial Pro package adds Stripe Checkout, Billing Meters integration, subscription-aligned periods, and hosted dashboards. Includes benchmark numbers (~7.9M increments/s across distinct counters) and a migration path from version 0.1 to 0.2.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/liamkillingback/aurora-meter>

## Questions this post answers

### How do I upgrade aurora_meter from 0.1 to 0.2 in a Phoenix app?

Version 0.2 adds a new aurora_meter_history table, bringing the schema to version 2. Run the migration generator with a starting version flag, `mix aurora_meter.gen.migration -r MyApp.Repo --from 2`, then run `mix ecto.migrate` to apply it. Check the changelog for any additional changes beyond the schema update.

_daily.dev helps Elixir developers stay ahead of migration steps when upgrading dependencies like this._

### How fast are ETS-based counters compared to hitting Postgres on every increment in Elixir?

Using ETS atomic counters via ets:update_counter/4 instead of a database write on every increment reaches roughly 7.9 million increments per second across 8 processes with distinct counters, versus about 53,000 increments per second in the worst case of one hot counter, benchmarked on Elixir 1.20 and OTP 29 on a dev laptop.

_Developers weighing counting strategies for high-throughput Phoenix apps can track benchmarks like this on daily.dev._

### What is the difference between the free and paid tiers of Aurora Meter for Phoenix billing?

The MIT-licensed core includes ETS real-time counters, the plan DSL, atomic quota gating, LiveView usage components, and Postgres persistence with telemetry, all free with no trial or email gate. The separately licensed Pro package adds Stripe Checkout and webhook sync, metered usage reporting to Stripe Billing Meters, subscription-aligned billing periods, historical rollups, hosted dashboards, and quota alerts.

_daily.dev keeps engineers deciding between free and paid billing tooling informed on tradeoffs like these._

## Similar posts on daily.dev

- [real-time usage metering and plan entitlements for Phoenix](https://daily.dev/posts/real-time-usage-metering-and-plan-entitlements-for-phoenix-58urfmeeu) · ElixirStatus · 0 upvotes · 0 comments
- [All roads lead to metered pricing](https://daily.dev/posts/all-roads-lead-to-metered-pricing-yvoujksya) · Kilo Blog · 132 upvotes · 31 comments
- [Why I Built an Application-Level Quota Manager for Laravel](https://daily.dev/posts/why-i-built-an-application-level-quota-manager-for-laravel-vkdcfqv00) · Medium · 4 upvotes · 0 comments
- [Laravel monitoring that doesn't bill you by your traffic](https://daily.dev/posts/laravel-monitoring-that-doesn-t-bill-you-by-your-traffic-o6axngfrn) · Laravel News · 0 upvotes · 0 comments
- [GitHub - mijnverbruik/p1meter.dev: Source behind p1meter.dev, the virtual P1 smart meter simulator](https://daily.dev/posts/github---mijnverbruik-p1meter-dev-source-behind-p1meter-dev-the-virtual-p1-smart-meter-simulator-mcxlhfhvw) · ElixirStatus · 0 upvotes · 0 comments

---

Tags: [#elixir](https://daily.dev/tags/elixir), [#stripe](https://daily.dev/tags/stripe)

[View this post on daily.dev](https://daily.dev/posts/github---liamkillingback-aurora-meter-real-time-usage-metering-plan-entitlements-and-stripe-ready-d09rwmofh)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"GitHub - liamkillingback/aurora-meter: Real-time usage metering, plan entitlements, and Stripe-ready billing primitives for Phoenix.","url":"https://daily.dev/posts/github---liamkillingback-aurora-meter-real-time-usage-metering-plan-entitlements-and-stripe-ready-d09rwmofh","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/github---liamkillingback-aurora-meter-real-time-usage-metering-plan-entitlements-and-stripe-ready-d09rwmofh"},"datePublished":"2026-09-07T06:43:07.371Z","dateModified":"2026-09-07T12:07:39.205Z","description":"Aurora Meter is an Elixir/Phoenix library that provides real-time usage metering, plan entitlements, and Stripe-ready billing primitives directly in-app rather...","image":"https://media.daily.dev/image/upload/s--0_ODbtD2--/f_auto/v1722860399/public/Placeholder%2008","thumbnailUrl":"https://media.daily.dev/image/upload/s--0_ODbtD2--/f_auto/v1722860399/public/Placeholder%2008","isAccessibleForFree":true,"articleSection":"ElixirStatus","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"ElixirStatus","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/22e4640538124187827caf8cc8e39190","url":"https://daily.dev/sources/elixirstatus"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/github---liamkillingback-aurora-meter-real-time-usage-metering-plan-entitlements-and-stripe-ready-d09rwmofh","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"elixir,stripe","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"ElixirStatus","item":"https://daily.dev/sources/elixirstatus"},{"@type":"ListItem","position":3,"name":"GitHub - liamkillingback/aurora-meter: Real-time usage metering, plan entitlements, and Stripe-ready billing primitives for Phoenix."}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/github---liamkillingback-aurora-meter-real-time-usage-metering-plan-entitlements-and-stripe-ready-d09rwmofh#faq","mainEntity":[{"@type":"Question","name":"How do I upgrade aurora_meter from 0.1 to 0.2 in a Phoenix app?","acceptedAnswer":{"@type":"Answer","text":"Version 0.2 adds a new aurora_meter_history table, bringing the schema to version 2. Run the migration generator with a starting version flag, `mix aurora_meter.gen.migration -r MyApp.Repo --from 2`, then run `mix ecto.migrate` to apply it. Check the changelog for any additional changes beyond the schema update. daily.dev helps Elixir developers stay ahead of migration steps when upgrading dependencies like this."}},{"@type":"Question","name":"How fast are ETS-based counters compared to hitting Postgres on every increment in Elixir?","acceptedAnswer":{"@type":"Answer","text":"Using ETS atomic counters via ets:update_counter/4 instead of a database write on every increment reaches roughly 7.9 million increments per second across 8 processes with distinct counters, versus about 53,000 increments per second in the worst case of one hot counter, benchmarked on Elixir 1.20 and OTP 29 on a dev laptop. Developers weighing counting strategies for high-throughput Phoenix apps can track benchmarks like this on daily.dev."}},{"@type":"Question","name":"What is the difference between the free and paid tiers of Aurora Meter for Phoenix billing?","acceptedAnswer":{"@type":"Answer","text":"The MIT-licensed core includes ETS real-time counters, the plan DSL, atomic quota gating, LiveView usage components, and Postgres persistence with telemetry, all free with no trial or email gate. The separately licensed Pro package adds Stripe Checkout and webhook sync, metered usage reporting to Stripe Billing Meters, subscription-aligned billing periods, historical rollups, hosted dashboards, and quota alerts. daily.dev keeps engineers deciding between free and paid billing tooling informed on tradeoffs like these."}}]}
```

