AuroraMeter. Broadcaster
(Aurora Meter v0.1.0)
View Source
Fans live counter values out over Phoenix.PubSub on an interval, decoupled
from the (slower) database flush.
Each tick broadcasts the current value of every recently-changed counter on its
tenant topic ("aurora_meter:tenant:" <> tenant_key) as
{:aurora_meter, :usage, %{feature:, value:, period_start:}}.
Summary
Functions
Broadcasts changed counters now, returning :ok.
Returns a specification to start this module under a supervisor.
The PubSub topic for a tenant's usage updates.
Functions
@spec broadcast_now() :: :ok
Broadcasts changed counters now, returning :ok.
Returns a specification to start this module under a supervisor.
See Supervisor.
The PubSub topic for a tenant's usage updates.