Skip to content

Commit b8fd3f6

Browse files
committed
docs(billing): note the reconnect delay in the shared sum staleness bound
1 parent 7e842d1 commit b8fd3f6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/sim/lib/billing/core/reporting-usage-cache.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ const logger = createLogger('ReportingUsageCache')
3030
* A sum is held both in Redis, shared by every process, and in each process that reads it. It
3131
* reflects the ledger as of the moment its sum began, and its Redis expiry is anchored to that
3232
* moment, so it is served from Redis for at most max(this TTL + jitter, the sum's duration +
33-
* {@link MIN_SHARED_TTL_MS}) after it began, plus up to this TTL again in the reading process.
33+
* {@link MIN_SHARED_TTL_MS}) after it began (plus any reconnect delay for a resent write), plus
34+
* up to this TTL again in the reading process.
3435
*/
3536
export const REPORTING_USAGE_CACHE_TTL_MS = 30_000
3637

0 commit comments

Comments
 (0)