When the Black Friday Surge Hits, Can Checkout Keep Up? Real Traffic, Real Load, Zero Guesswork

Rehearsing for the Black Friday Surge
Every year it's the same feeling: Black Friday and Cyber Monday (BFCM) are coming, and we get excited. It's the time of year when traffic on the Wix eCommerce platform might rise by hundreds or even thousands of percent in a sudden peak, on top of a baseline that is already high. Every part of the purchase flow gets a real workout.
The platform runs the cart, checkout, orders and payments that Wix Stores, the other Wix business solutions and third-party apps all use. So before the big week, we hold a rehearsal: a JMeter script plays many buyers at once, and each one goes all the way from add to cart through checkout and payment to the thank-you page. Apache JMeter is an open-source load-testing tool: it simulates many users and measures how a system responds.
There's a catch, though: a load test is only as honest as the flow it sends. A buyer's browser makes some calls several times per order, and a script that makes them fewer times tests those services below their real load. When we opened the script this October, it was still shopping the way a buyer did in 2025. It added items through the old cart API and checked out through calls the checkout page no longer makes. Run that at Black Friday scale and you get a beautiful green report about endpoints real buyers don't hit, while the services they do hit sit there untested.
And 2026 was a bad year to have a stale script. Lots of purchase-flow services were split into new services for performance, the cart and checkout flow moved to a new cart API, and more of the work before and after "Place order" moved into separate, asynchronous flows. The test had to catch up with all of it.
The warm-up started in August, after a major jump in traffic. Every service on the checkout path already autoscales; before a peak we raise each service's autoscaling settings. We built AI skills for this: they find every service on the path and propose settings per team, and a person approves every change. The BFCM upscale and downscale reuse the same steps.
Then we changed how we run the load test itself. This year AI has a hand in most steps: rewriting the JMeter flow, watching production before and during the run, digging through the results afterward, and helping the test owner with capacity changes. People still call the shots and own every fix.
Why we test on production (yes, production)
We push the purchase flow to about the order rate we expect at peak, and we do it on production, not on a detached copy.
Why? Because the interesting problems live between services. A staging environment holds only the services deployed there. Production holds all of them: databases, message queues and every consumer of order events, autoscaling with its real limits, fraud protection and gateway rate limits. Our load lands on top of real traffic, so we see the headroom we'll actually have on the day.
Testing on production isn't free, so we come prepared:
Dedicated test sites with realistic catalogs, emails turned off, a stand-in shipping provider that answers with realistic latency, and payments in sandbox mode.
Test traffic is marked, so anyone can tell it apart from real buyers.
On-call teams get the time window before each run, so nobody is surprised.
A person holds the stop button for the whole run.
One more design choice: the test goes for the back end and skips the front end on purpose. Storefront pages are served through caches, CDNs and server-side rendering (SSR), so load sent through the pages would mostly bounce off those layers.
Instead, JMeter sends the public API calls a buyer's browser makes, in the same order and number, from add to cart to the thank-you page. Along the way it reaches about a dozen systems directly and around two dozen more behind them: tax, discounts, inventory, invoices, media, analytics, cart abandonment, automations, notifications and more.
Teaching an old JMeter script new tricks, with AI
The rewrite started from a real order. We placed one on a test site and recorded every API call the page made. An AI agent (Claude Code) compared the JMX, JMeter's XML test plan, with that recording call by call, turned the differences into a to-do list and rewrote the JMX in small commits. A smoke test with one thread per site closed the loop.
One catch would be easy to miss in a manual review: an extractor read the cart ID from a field the response never had, so every later call quietly sent an empty cart ID. Today each loop of the test is one buyer placing one order, with around 30 API calls.
Why we stayed with JMeter (and didn't hand the load to AI agents)
Switching to a code-first load tool was the obvious move, and handing the load itself to AI agents the newer one. One read that shaped our decision was Wasana Panagoda's “Performance load testing with JMeter in the AI era”: AI shortens the trip from “we need a test” to a baseline with clear findings, and the tool underneath can stay. So we put the agents around the test, writing the script, watching the run and digging through the results, and kept JMeter for the load, because:
It models a buyer well. Extractors and assertions carry the cart ID, the delivery option and the other values a buyer's browser passes along from call to call, and every step checks its own response.
The old reason to leave is gone. Hand-editing a giant XML plan used to be the pain, and an AI agent reads and edits JMX like code. Our effort went into matching a real buyer, not into porting the test.
From a crowd of on-call engineers to a few bots: what changed for developers
Testing on production has always meant people watching, and until 2025 it meant a lot of people. On-call engineers from half a dozen rotations across the eCommerce, Payments and Stores teams watched their dashboards, while a checklist of about 40 services owned by around seven teams was ticked off by hand. Once the run ended, the real work began: an investigator from each team combed through the failed orders, and every issue became a row in a shared Google Sheet. That took a day or two.
In 2026 we handed most of the watching and the first round of investigation to bots: a watchdog script on the JMeter results, and an AI agent that sends background subagents to check production. They made their share of mistakes too (see the lessons below).
Step | Until 2025 | 2026 |
Watching the run | On-call engineers from each team, each on their own services' dashboards and urgent channels | A watchdog script every few seconds and agent subagents every few minutes, across all the flow's services |
Sources checked | Each team's own dashboards | JMeter results, order events, service metrics, autoscaling, payments, firing alerts and the urgent Slack channels |
Verifying a finding | By hand, by the person who saw it | The agent re-checks the number and compares it with a baseline recorded before the run, then alerts |
Investigating | An investigator per team, after the run, in that team's services | The agent, across the flow's services, tracing request identifiers through logs and metrics |
Tracking and fixing | Rows in a shared Google Sheet, filled in by each team's investigator | A findings doc per team with request identifiers and asks, a sheet that traces each item, and a Jira ticket per issue to fix it |
Time to findings | A day or two | Alerts during the run, a summary seconds after the stop, per-team findings the same day or the next working day |
What we save is mostly people's time. During the run, one person runs the test and follows the agent from a phone. After the run, the owning team gets a Jira ticket with the issue described and a request identifier attached, instead of a pile of raw logs and CSV files.
An AI agent on watch
A few minutes into the November run, one checkout service's latency jumped to about four times its baseline. That's the moment someone has to decide whether to stop the test, and they need to know fast whether buyers feel it.
The agent's notice came within minutes, with the answer already in it. It had split the latency by method: all of the extra time was in a background batch handler, not in the calls a buyer waits on. The test's own results showed errors at about a tenth of a percent, and the latency was already coming down. The notice marked the blast radius as test sites only and recommended "no action", and the run went on.
That answer drew on two views, which is why the bots watch in two layers. A watchdog script reads the JMeter results as they stream in, every few seconds: errors per step, p95 latency, orders placed and stalls. That's what our test buyers feel. An agent loop starts background subagents that check production: orders on the test sites, service errors and latency, capacity, payments, firing alerts and the urgent Slack channels. The checks run every few minutes, the fast ones more often than the slow ones.
The setup is simple on purpose: the load runs from the test owner's machine, and the monitoring agent runs separately and records a baseline before the run starts.
The agent posts status updates, warnings and critical alerts to a shared Slack channel. A critical alert brings the numbers, the blast radius (test sites only, or real merchants) and a recommendation, from "consider stopping" to "STOP THE TEST NOW", and buzzes the test owner's phone. Each alert links to the right view on a Grafana dashboard built for this test, and the agent's checks use that dashboard's own queries.
And during the run, the agent only looks. It never stopped the test, scaled a service or changed a setting; a person made every call.
The runs taught us one thing the hard way: our first design was too slow. One agent ran every check, and an iteration took longer than the time between checks. Now a scheduler only launches work, parallel subagents run the checks, and lock files keep passes from overlapping.
After the run: the agent does the digging
In the November run, a test buyer placed an order, the charge went through, and the buyer was told the payment had failed. We saw it only on test sites, but for a real shopper it would mean a paid order and an error on the screen.
The agent found it in a crowd of errors. Over a hundred place-order calls failed in that run with the same HTTP status. Almost all were the payment sandbox declining charges, and anyone scanning the errors would likely have filed the whole bunch under that. The agent matched every failed request to its logs and found a handful that didn't fit. In each, the charge had gone through even though the call failed.
With those request identifiers, the owning team found the cause (already fixed).
The same investigation across services also caught a quieter issue: a service outside the checkout path that reads order events was failing at order peaks. Its owning team had a fix in review the same day (already fixed).
Both cases came out of the routine the agent follows after every run. When the run ends, there's a mountain of data, and the agent works through it with a fixed checklist. It starts from the test's own failures and traces every failed request through the logs. Then it checks rate limits (gateway, payment provider, fraud protection), capacity for every autoscaled service, and errors per service against the baseline. Each finding gets a label: caused by the test, or already there.
Every run leaves the same outcomes, right where the teams already work:
The run's raw results, with a README that explains each file.
A run record in our knowledge hub: a TL;DR of the run, the critical issues, and links to every doc, file and dashboard view.
Analysis docs: findings per team, each with an example request identifier and a concrete ask, plus the full capacity and error tables, the root causes the agent found, and links to the queries behind them.
Each run produced around 30 action items across about ten teams, each with an owner and handled in a Jira ticket by the owning team.
Side note: once an issue lands in Jira, it goes through an AI process of its own that looks for the root cause, proposes a resolution and helps solve it. That one deserves its own post.
Priorities follow impact: errors buyers saw, outages and maxed-out services first, then capacity asks, then issues that predate the test. And every service gets the same written upscale rule, based on how close it ran to its autoscaling limits.
After one of the runs, in October, the services that hit their ceiling got more room. The action items even include the test itself, like agent queries that returned zero. Nobody gets a free pass, including us.
Takeaways you can steal
Rebuild the flow from a real browser session, or a headless one, every year. Compare call counts per order, not only the list of endpoints.
Test on production with a load test, not a stress test. Know your limits and stay under them to avoid taking production down. Use dedicated tenants, mark the traffic, turn off side effects that reach people, warn on-call, and keep a person on the stop button.
Find your external ceilings before you size the run: payment provider sandbox limits, per-IP limits at your gateway, and fraud detection that reacts to declined charges.
Monitor in two layers, and keep actions with people. The load tool's own results show the present; production telemetry shows the blast radius. Let the agent read and alert, using your dashboard's queries word for word.
Turn findings into per-team tasks with a request identifier, a concrete action and an owner, in the tools the teams already use, and apply one written upscale rule to every service.
Thanks to the on-call engineers and the owning teams who picked up these findings. If you load test on production too, or make the opposite call on JMeter, we'd love to compare notes. Happy BFCM!

This post was written by Naor Lipa
More of Wix Engineering's updates and insights:
Join our Telegram
Visit us on GitHub
Subscribe to our YouTube channel


Comments