Limited-seat products: capacity rules, holds, race-proof reservations #91
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Must land BEFORE checkout (#26). Owner's answers (2026-10-23):
park_products.limited_seats boolean NOT NULL DEFAULT false. Only flagged park-products have capacity rules; unflagged ones skip the seat path entirely (no hold, no counter). Unflagging is refused while capacity rules or active holds exist.Design (same guard rails as wallets, ADR 0007)
Single conditional
UPDATE ... WHERE sold + n <= cap, CHECK, append-only reservations ledger with idempotency keys, hold -> confirm/release, multi-day all-or-nothing locking days in ascending order, drift view, raw-SQL hammer tests, hot-day benchmark (~1,000 buyers on one product-day), OpenAPI update, ADR 0008.Depends on #24 (HTTP idempotency keys) for the retry story.