Радар на почту

Границы ночной обработки использования для неизменяемых строк выставления счетов логистических арендаторов

DEV · 17.11.2026 · 23:16

Работа с логистическими нагрузками должна быть ограничена во время приема, а ночная обработка использования поможет согласовать произошедшее. Важно учитывать, что обновления доставки не…

Читать в источнике

Оригинал

Nightly Usage Rollup Job Boundaries for Immutable Logistics Tenant Billing Rows

Cap a logistics workload at admission time; use the nightly usage rollup to reconcile what happened. A freight tenant's delivery updates should not keep consuming an allowance merely because its invoice hasn't arrived. Conversely, refusing an update can delay operational work, so the ceiling and the refusal policy belong in the same architecture decision. TL;DR: schedule the job independently of billing-page traffic, retain the usage input, and commit one immutable billing row per tenant and pe