Skip to main content
FGFG BookingHTML DEV 0.5.63
Concurrency

Reservation holds

Temporarily protect a selected slot while a customer finishes details and payment.

Why this exists: availability can be shown to several customers at once. A short-lived hold reduces double-booking risk before the final backend transaction performs its atomic conflict check.

Hold simulator

5 minute TTL

Backend commit contract

1. Recalculate availability

Never trust the slot shown earlier in the browser.

Required
2. Lock capacity atomically

Staff, resources, class seats and holds participate in one transaction.

Required
3. Idempotent command

Retries must return the same result instead of creating duplicates.

Required