cap-counter
Tracks per-tenant usage against configurable limits using two complementary storage models: calendar-period counters (one projection row per tenant/capName/period, reset implicitly by period rollover) and rolling-window counters (append-only event stream, no projection). Use enforceCap / enforceRollingCap (or the withCapEnforcement / withRollingCapEnforcement handler wrappers) in your write-handlers to check limits with soft-warn and hard-block tolerances; call enforceCapAndMaybeNotify when you also want to trigger a delivery notification on soft-threshold hits.
Dependencies
Section titled “Dependencies”- Requires: none
- Activation: always on (not toggleable)