Skip to content

How-To: Event Ticket Booking

Demonstrates event capacity management with per-user ticket purchasing. Field trial: FT196 (../NENE2-FT/ticketlog/). Includes ATK-01~12 cracker attack test.

Pattern summary

ConcernApproach
Capacity trackingremaining = capacity - COUNT(tickets) computed on read
Sold-out409 Conflict when remaining <= 0
Duplicate purchaseUNIQUE(event_id, user_id) → catches concurrent double-buy
IDOR canceluser_id ownership check → 403 if mismatch
Admin keyhash_equals() fail-closed

ATK-01~12 results: ALL PASS

Released under the MIT License.