Yuruicamp

E-0 Booking Checkout 冪等 Schema

用途

避免網路重試或重複點擊建立兩筆 pending 預約,造成營位與租借庫存重複占用。

流程

會員提交 idempotencyKey
→ bookings 保存 key 與 request hash
→ DB 限制同一會員不能重複 key
→ E-3 Service 比較 hash,決定回放或回傳衝突

規則

驗證結果