Caching & Rate Limiting

Caching and rate limiting configuration using Upstash Redis in ShipKit

Caching & Rate Limiting

ShipKit uses Upstash Redis for caching and rate limiting.

Features

  • API rate limiting
  • Data caching
  • Session storage
  • Queue management
  • Real-time features
  • Edge caching

Configuration

Add these environment variables to enable Redis functionality:

# Required
UPSTASH_REDIS_REST_URL=your_redis_url
UPSTASH_REDIS_REST_TOKEN=your_redis_token

Get your credentials from the Upstash Console.

Rate Limiting

Default configuration:

  • 10 requests per 10 seconds per IP
  • Customizable limits
  • Analytics enabled
  • Global and route-specific limits

Caching

Supported caching strategies:

  • In-memory caching
  • Distributed caching
  • Edge caching
  • Stale-while-revalidate

Resources