01Reserve then settle
- Decision
- Hold an estimated maximum before the call and reconcile to actual usage afterwards.
- Alternatives
- Debit once after the response, or charge a flat price per operation regardless of usage.
- Why
- It is the only option that keeps the balance from going negative under concurrency while still charging the true cost.
- Cost of being wrong
- Estimates must be conservative, so accounts near zero get rejected for calls they could have afforded; and stuck reservations need a sweeper.