Skip to main content

Cart Reservation Guide

Learn how to hold inventory during the checkout window to prevent overselling when consumers are admitted from Fanfare experiences.

Overview

When a consumer is admitted from a queue, draw, or auction, you may want to reserve their selected items until they complete checkout. This guide covers patterns for inventory reservation during the admission window. What you’ll learn:
  • Reservation strategies for different scenarios
  • Implementing time-limited holds
  • Handling reservation expiration
  • Integration with your inventory system
Complexity: Intermediate Time to complete: 30 minutes

Prerequisites

  • Checkout Overview guide completed
  • Understanding of your inventory management system
  • Backend development capabilities

Why Reserve Inventory?

Without reservation, admitted consumers may find their items sold out by the time they reach checkout: Cart reservation timeline comparing no reservation with a protected reservation hold.

Reservation Strategies

Strategy 1: Soft Reservation (Optimistic)

Reserve inventory on admission, release if not purchased:

Strategy 2: Hard Allocation (Guaranteed)

Deduct from inventory on admission, refund if not purchased:

Strategy 3: Queue-Based Allocation

Allocate based on queue position:

Implementation Example

Database Schema

Reservation Service

Expiration Worker

Integration with Checkout

On Admission

During Checkout

On Abandonment

UI Feedback

Show reservation status to consumers:

Best Practices

1. Match Reservation to Admission Window

2. Handle Race Conditions

3. Provide Clear Feedback

4. Monitor Reservation Metrics

Troubleshooting

Inventory Drift

If reserved counts become inconsistent:

Reservation Not Found

What’s Next