Skip to main content
Usage metering is the foundation of any consumption-based billing system. Fluxrate provides a simple, reliable event ingestion system that handles deduplication, aggregation, and billing calculations automatically.

The Metering Flow

Meters

A Meter defines:
  • What to measure (property name in event payload)
  • How to aggregate (SUM, MAX, UNIQUE_COUNT, LAST)
  • Unit for display (calls, bytes, users, etc.)
Every meter has a unique meter_token — a UUID used to identify it when sending events.

Usage Events

Each usage event contains:

Querying Usage

View aggregated usage for a meter:
Response:

Grouping Options

Idempotency

To prevent double-counting when retrying failed requests, always pass an idempotency_key:
If the same idempotency_key is sent again, the duplicate event is silently ignored.

High-Volume Ingestion

For high-volume scenarios (millions of events/day), consider:
  1. Batching events — Aggregate at your backend before sending (e.g., send message count every minute, not per message)
  2. Async sending — Use a message queue to send events asynchronously
  3. Pre-aggregation — Use your own counters and periodically sync totals
See the Infrastructure Cost Guide for scaling recommendations.