Skip to main content
Fanfare is designed to handle massive traffic spikes during high-demand product launches and events. This guide covers best practices for ensuring your integration scales effectively.

Understanding Traffic Patterns

Product launches and limited releases typically follow predictable traffic patterns: Traffic pattern diagram showing pre-launch rise, launch peak, and sale traffic over time.
  • Pre-launch surge: Traffic builds as the launch time approaches
  • Peak at launch: Maximum traffic at the moment the experience opens
  • Sustained period: Consistent traffic during the sale
  • Gradual decline: Traffic decreases as inventory sells out

Capacity Planning

Estimate Your Traffic

Before a high-demand event, estimate expected traffic:

Set Appropriate Limits

Configure experience limits to match your fulfillment capacity.
Setting limits too high can create fulfillment bottlenecks. Set limits based on what you can actually deliver.

Architecture Recommendations

Separate Landing Pages

Keep your product pages separate from Fanfare experiences. Scalability architecture showing customer CDN product page, Fanfare widget, and checkout backed by the customer backend. Benefits:
  • Product pages can be heavily cached
  • Fanfare handles the surge traffic
  • Your checkout only sees qualified traffic

CDN Configuration

Cache static assets aggressively.

High-Traffic Scenarios

Queue-Based Distribution

Queues are ideal for high-traffic scenarios as they naturally throttle access.

Draw-Based Distribution

Draws distribute access randomly, ideal for fairness in high-demand situations.

Error Handling at Scale

Retry with Backoff

Implement exponential backoff for transient errors.

Graceful Degradation

Handle failures gracefully to maintain user trust.

Load Testing

Pre-Launch Testing

Test your integration under expected load before the event.

Testing Checklist

Verify the SDK initializes correctly when many users load the page simultaneously.
Simulate many users entering an experience at the exact same moment.
Verify position updates are delivered reliably under load.
Ensure the checkout handoff works when many users are granted access simultaneously.
Verify graceful handling of rate limits, timeouts, and service errors.

Monitoring During Events

Key Metrics to Watch

Real-Time Dashboards

Set up monitoring dashboards before high-traffic events.

Communication During Events

Status Page

Consider setting up a status page for high-profile events.
  • Current queue depth
  • Estimated wait times
  • Any known issues
  • Updates on inventory

User Messaging

Prepare messaging for common scenarios:

Next Steps