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★ 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:
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
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
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
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):
- 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
- If on shared hosting, migrate to a VPS or managed WordPress host at least 1 week before the sale to allow stabilization
- On Cloudways: go to Servers → [server] → Vertical Scaling before the event and select a larger server size; scale back down after
Cache stack:
- Install and configure WP Rocket (page cache) + Redis Object Cache (database query cache)
- WP Rocket: enable Preload cache to warm pages before the sale starts
- Redis Object Cache: verify Redis is active (green status in Settings → Redis)
- 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:
- Enable WooCommerce's built-in inventory management: WooCommerce → Settings → Products → Inventory → check Enable Stock Management
- Set Hold stock (minutes) to 60 — this holds an item in a customer's cart for 60 minutes before releasing it back to inventory
- 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:
- Use Loader.io (free tier: 1 target, 10K connections) to simulate your expected peak traffic against your staging site
- Test the checkout flow spec
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
claude-code - 02
cursor - 03
gemini-cli - 04
copilot - 05
codex-cli - 06
kiro - 07
opencode
Вложенные файлы
- 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), без исполняемых скриптов.
Похожие скиллы
gtm-enterprise-account-planning
GitHubStrategic account planning and execution for enterprise deals. Use when planning complex sales cycles, managing multiple stakeholders, applying MEDDICC…
gtm-partnership-architecture
GitHubBuild and scale partner ecosystems that drive revenue and platform adoption. Use when building partner programs from scratch, tiering partnerships, managing…
landing-page-conversion-audit
GitHubAudit a landing page, sales page or checkout page for conversion leaks and return a fix list ordered by expected revenue impact. Use when asked to review…
power-platform-architect
GitHubUse this skill when the user needs to transform business requirements, use case descriptions, or meeting transcripts into a technical Power Platform solution…