When Shopify’s engineers rebuilt inventory reservations for checkout, they ran into a throughput ceiling that did not add up. Latency looked fine, the CPU wasn’t maxed out, and the queries were already tuned. The real limit turned out to be database connections, held too long by parts of the checkout path nobody was watching.
That’s what a flash sale does to a checkout. Checkout is a chain: cart, pricing, tax, shipping, inventory, payment, and order creation. Under concurrent load, a slowdown in one link spreads to the next, and a normal day tells you very little about which link is weakest.
One caveat first. Engineering can remove abandonment caused by technical problems, but not all abandonment. Plenty of shoppers leave because they were only browsing. The goal is to make sure the exits that remain are the customer’s choice, and not the system’s.


Why Checkout Breaks When Demand Arrives
Promotions change the shape of traffic, as well as its size. Browsing surges, carts update constantly, and inventory checks and payment attempts arrive in bursts. Over Black Friday weekend 2025, Shopify reported 489 million edge requests per minute and $5.1 million in sales per minute at peak. Those are one platform’s production figures, so don’t treat them as a benchmark for your store.
What’s more useful is how Shopify prepared. Its engineers say their drills simulated 150% of the previous year’s load, and by the fourth scale test they reached 146 million requests per minute and more than 80,000 checkouts per minute. Requests and checkouts measure different things, and mixing them up leads to bad capacity plans.

Separating Technical Failure from Ordinary Abandonment
Baymard Institute puts documented cart abandonment at 70.22%, an unweighted average of 50 studies from 2006 to 2025, with individual results ranging from 55% to 84%. Use it as a reference point, not a target. Baymard’s own survey found that 42% of US shoppers have abandoned a cart because they were just browsing.
Set those shoppers aside and the stated reasons look different. Extra costs lead at 40%, slow delivery comes next at 20%, website errors or crashes account for 17%, and declined cards for 10%. Some older write-ups quote 13% for errors. Either way, these are reasons shoppers give, not measured failures, so your own logs matter more than any survey number.
Measure the two stages separately:

  • Cart abandonment rate: (1 − completed purchases ÷ carts created) × 100
  • Checkout abandonment rate: (1 − completed orders ÷ unique checkout starts) × 100
    Keep event definitions and cohorts fixed, or your comparisons will mislead you. Give every checkout start a transaction ID and follow it through the payment attempt, its outcome, and order confirmation. Then treat the patterns you see as hypotheses to test:

  • Errors and timeouts at checkout start suggest application or database saturation.

  • Payment submitted without a confirmation suggests gateway timeouts or webhook handling.

  • Drop-off at shipping with healthy latency suggests pricing or delivery surprises.

  • Drop-off concentrated on mobile suggests interrupted sessions or payment redirects.

Doing the Math on Concurrency
“Concurrent users” is the most misused number in this field. Ten thousand people on the site doesn’t mean ten thousand payments. Visitors, sessions, requests per second, in-flight requests, and orders per second are all different measurements.
Little’s Law connects the last few: L = λ × W, where L is the number of requests in flight, λ is the arrival rate, and W is the average time each request spends in the system. Little's proof assumes stationary processes with finite averages, so treat the results as estimates.
Say checkout calls arrive at 1,200 per second and each takes 0.8 seconds. That’s about 960 in flight. If the payment provider slows to 3 seconds, the same arrival rate puts 3,600 in flight. Connection pools sized for 960 are suddenly facing nearly four times the load, without a single extra visitor.
Averages hide this. Google’s SRE book notes that at 1,000 requests per second with a 100 ms average, 1% of requests can easily take five seconds. Forecast from shopper behavior and burst scenarios, and keep an eye on p95 and p99.

Where the Bottlenecks Hide
The Database
Connection exhaustion, long transactions, and row locks are the usual suspects, and a calm CPU graph can hide all three. Shopify saw threads queuing and connections running out at its proxy layer while CPU wasn’t maxed out. It tagged each SQL statement with the business process behind it and measured how long each caller held a connection. Cleaning up the checkout path then removed 50% of reads and 33% of transactions on the primary database. Those numbers are Shopify’s, but the method works anywhere: find out who’s holding connections, not just which queries are slow. Keep transactions short, never hold one open during an external API call, and read stock and payment state from the authoritative records, not from caches.

Inventory
This is the last-unit problem: two buyers see “1 available” at the same moment, and both purchases go through. A single quantity column is correct, but it becomes a hot row, and Shopify said it couldn’t handle the contention. It moved to one row per unit using MySQL’s SKIP LOCKED, so concurrent transactions skip locked rows instead of waiting, and it capped the pool at 1,000 available rows per item and location. Its earlier Redis design handled concurrency well, but reservations and the ledger lived in two separate systems, so claiming stock after payment couldn’t happen in one atomic step. That’s one stack’s trade-off, not a rule. Whatever you choose, reserve stock with an expiry, convert the reservation when payment is confirmed, release it on failure, and test your hottest products under real contention.

Payments
A local database rollback can’t undo an external charge, so you have to design for partial failure:

  • Idempotency keys. Stripe saves the result of the first request made with a key, including 500 errors, and returns that same result on retries. Keys can be pruned after 24 hours.
  • Webhooks. Stripe retries undelivered events for up to three days and does not guarantee order, so your endpoint should expect repeats. Store event IDs and read the object’s current state.
  • Explicit order states. Keep pending, authorized, captured, and confirmed as separate states, and reconcile with the provider after timeouts.
  • Compensation. AWS describes sagas as the way to undo partial work, but warns that they lack isolation, add latency, and get harder to debug as the number of services grows. Retries alone won’t give you exactly-once processing. AWS advises that APIs with side effects are not safe to retry unless they’re idempotent.

Building Resilience Into the Flow
Retries are the quiet amplifier. In an example from Amazon's Builders' Library, five service layers that each retry three times can multiply the load on a failing database 243 times. Cap the number of attempts, use exponential backoff with jitter, set a retry budget, and base timeouts on the downstream service’s latency percentiles. The same article warns that circuit breakers add behavior that’s hard to test and can slow recovery, so rehearse them.
Cache assets and catalog content, but don’t cache cart state or payment status without strict invalidation. Put notifications and analytics on queues with limits on depth and message age, plus a dead-letter queue, because an unbounded queue just postpones failure. When the system is under pressure, degrade on purpose: drop recommendations and live shipping estimates before you put the purchase at risk.
Bots go after the same weak points. OWASP lists unrestricted access to sensitive business flows, such as buying up all the stock of a high-demand item. It says mitigation needs a business decision about which flows can be harmed by excessive use, as well as engineering controls. Pair rate limits and bot detection with purchase caps, and watch for false positives.
How you secure the payment page depends on your architecture. The PCI Security Standards Council confirmed that requirements 6.4.3 and 11.6.1 for payment page scripts took effect on 31 March 2025, and that they were removed for merchants validating to SAQ A. Your validation scope decides what applies to you, and nothing here guarantees compliance.
On mobile, save transaction state so a dropped connection can resume cleanly, block double submissions, and tie front-end retries to backend idempotency. Friction matters too: Baymard's benchmark shows that the average US checkout displays 23.48 form elements, compared with 12 to 14 in an ideal flow.

Proving It Before the Event
Test the whole journey. Many load tools use a closed model, where each virtual user waits for a response before sending its next request. When the system slows down, the test slows down with it and understates tail latency. This flaw is known as coordinated omission. k6's documentation explains that arrival-rate executors avoid it when you need a fixed throughput.
Realism matters as much as volume. Midway through its scale tests, Shopify added authenticated checkout and found rate-limit paths that anonymous browsing never touches. Add think time, warm caches, production-sized data, contention on hot products, and injected payment, API, and network failures. Use mocks or approved test environments for this, never live payment systems you aren’t authorized to test.
Judge the results by p95 and p99 latency, error rate, inventory accuracy, and recovery time, not by virtual user counts. In production, set SLOs for availability, latency, and transaction success; name event-day owners; freeze deployments; rehearse rollback and failover; and track cost per completed order. When you report gains, separate technical effects from changes in pricing, marketing, and demand.

Optimize, Modernize, or Rebuild
Most teams don’t need a rebuild. Let the evidence decide:
Optimize when profiling points to fixable queries, connection pools, API calls, or timeouts.
Go modular when teams collide or workloads need separate scaling.
Adopt microservices or headless commerce only when independent scaling and deployment justify the operational cost.
Phase the change with staged migration, monitoring, rollback, and test evidence at each step.
Shopify itself chose a modular monolith after concluding that no single architecture fits every stage and that microservices bring their own problems. Its reservation migration ran in a parallel “shadow mode” with a kill switch before cutover. That’s how you change a live checkout without interrupting it.

Reliability Is a Design Decision
Shopify’s lesson wasn’t really about Redis or MySQL. It was that the bottleneck sat in code nobody was measuring. Before your next sale, find out which part of your checkout holds a connection, a lock, or a retry longer than you think. Tag transactions end to end, load test at your real arrival rate, and fix what the data points to, not what the architecture diagram suggests.
Preparing for a major sales campaign means ensuring your e-commerce platform can handle more than everyday traffic. Your checkout, inventory, payment processing, and order management systems must work together reliably, even when customer activity surges. At TechoSquare, we help businesses develop and enhance e-commerce platforms with a focus on performance, scalability, and dependable transaction workflows. Explore our e-commerce website development services or contact our team to discuss your platform requirements and prepare your online store for its next major campaign.

*Author *
Priya Nair writes about e-commerce development and digital commerce technologies, focusing on online store architecture, checkout optimization, payment integration, and transaction management. Her articles explore the technical considerations behind building reliable and scalable e-commerce platforms, helping businesses understand how performance, usability, and seamless purchasing experiences contribute to successful online operations.