Command Palette

Search for a command to run...

Назад к скиллам
скилл № 02095

flash-sale-scaling

Prepare for Black Friday and flash sales with auto-scaling, queue-based order processing, and circuit breakers to prevent site outages

БесплатноБез исполняемых скриптов
finsilabsот finsilabs★ 69 звёзд на GitHub

Установить flash-sale-scaling в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Flash Sale Scaling

Overview

Flash sales and product drops generate traffic spikes 50–100× normal load, arriving within seconds of sale start. Without preparation, the checkout service collapses, inventory oversells, and customers see error pages. This skill covers the infrastructure patterns needed to handle extreme traffic: pre-warming, queue-based order intake with back-pressure, Redis-based atomic inventory reservation, and circuit breakers that degrade gracefully under load.

When to Use This Skill

  • When planning a flash sale, limited product drop, or major promotional event
  • When past sales have caused checkout timeouts, oversells, or database failures
  • When Black Friday/Cyber Monday planning is underway and infrastructure needs review
  • When a new product announcement is expected to drive sudden high-demand traffic

Core Instructions

Step 1: Determine your platform and what you can control

Platform Flash Sale Scaling Strategy Key Actions
Shopify Shopify scales automatically — no infrastructure work needed Focus on theme speed (cache pages, optimize images), enable Shopify's queue page for high-demand launches, use Launchpad (Shopify Plus) to schedule and automate the sale
WooCommerce You own the server — significant prep required Upgrade to a scalable host (Cloudways, Kinsta, WP Engine), enable Redis Object Cache + WP Rocket page cache, configure Cloudflare, run load tests 1–2 weeks before
BigCommerce BigCommerce scales automatically Use BigCommerce's flash sale feature (preview: shows estimated wait time); focus on catalog readiness and theme performance
Custom / Headless Full infrastructure control needed Apply all patterns below: pre-warm scaling, Redis inventory, queue-based checkout, circuit breakers

Step 2: Platform-specific flash sale preparation


Shopify

Shopify handles scaling automatically and can handle virtually any traffic spike. Your prep work is:

  1. Enable Shopify's high-demand checkout queue (Shopify Plus):

    • Go to Online Store → Preferences → Checkout
    • Enable Checkout concurrency — this activates Shopify's virtual waiting room for high-traffic drops
    • For limited-inventory products (product drops): use the built-in inventory reservation so customers who enter checkout have their item held for 10 minutes
  2. Use Launchpad (Shopify Plus) for sale scheduling:

    • Install Launchpad from the Shopify App Store (free for Plus merchants)
    • Schedule sale start/end times, price changes, and inventory availability in advance
    • Launchpad handles atomic activation at the scheduled time — avoid manual price changes under load
  3. Pre-test your store performance (all Shopify plans):

    • Go to Online Store → Themes and click View report to see your store's Core Web Vitals
    • Run Google PageSpeed Insights on your most critical pages (product page, collection page, checkout)
    • Fix any red/orange issues before the sale — compressing images is the most common fix
  4. Notify Shopify support before major launches (Shopify Plus):

    • Submit a Flash Sale notification via your Plus support channel — Shopify can pre-allocate resources and monitor your store during the event

WooCommerce

WooCommerce requires significant infrastructure work before a high-traffic event:

Hosting upgrade (most critical):

  1. Ensure your hosting plan can scale: use Cloudways (horizontal scaling with one click), Kinsta (auto-scaling), or WP Engine (auto-scaling add-on) — not shared hosting
  2. If on shared hosting, migrate to a VPS or managed WordPress host at least 1 week before the sale to allow stabilization
  3. On Cloudways: go to Servers → [server] → Vertical Scaling before the event and select a larger server size; scale back down after

Cache stack:

  1. Install and configure WP Rocket (page cache) + Redis Object Cache (database query cache)
  2. WP Rocket: enable Preload cache to warm pages before the sale starts
  3. Redis Object Cache: verify Redis is active (green status in Settings → Redis)
  4. Enable Cloudflare and set Caching level to Standard; add your store URLs to Cloudflare Page Rules with Cache Everything for product and shop pages

Inventory oversell prevention:

  1. Enable WooCommerce's built-in inventory management: WooCommerce → Settings → Products → Inventory → check Enable Stock Management
  2. Set Hold stock (minutes) to 60 — this holds an item in a customer's cart for 60 minutes before releasing it back to inventory
  3. For limited items: set Allow backorders to Do not allow so the product goes out-of-stock exactly at 0 inventory

Load test before the sale:

  1. Use Loader.io (free tier: 1 target, 10K connections) to simulate your expected peak traffic against your staging site
  2. Test the checkout flow spec
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01claude-code
  2. 02cursor
  3. 03gemini-cli
  4. 04copilot
  5. 05codex-cli
  6. 06kiro
  7. 07opencode

Вложенные файлы

  • evals/circuit-breaker-metrics-and-db-read-rout/criteria.json
  • evals/circuit-breaker-metrics-and-db-read-rout/task.md
  • evals/redis-atomic-inventory-and-waiting-room/criteria.json
  • evals/redis-atomic-inventory-and-waiting-room/task.md
  • evals/sqs-queue-checkout-hpa-pre-warming-artil/criteria.json
  • evals/sqs-queue-checkout-hpa-pre-warming-artil/task.md
  • tile.json

FAQ

Что делает скилл flash-sale-scaling?

Prepare for Black Friday and flash sales with auto-scaling, queue-based order processing, and circuit breakers to prevent site outages

Как установить скилл flash-sale-scaling?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл flash-sale-scaling запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить flash-sale-scaling с