All stories · Article
71.2 million database queries per second: How Shopify engineered for Black Friday scale
Shopify processed 71.2 million database queries per second at peak on Black Friday 2026. Its Edge network handled 13.1 million requests per second, while Shopify Functions executed 252,000 times per second.
Share: WhatsApp · Telegram · X · Facebook · LinkedIn · Email
These figures represent more than a record-breaking shopping day. They offer a glimpse into the infrastructure behind one of the world's largest commerce platforms.
The challenge is not simply handling millions of requests. It is distributing traffic, keeping databases responsive, isolating failures, and executing custom commerce logic without allowing one bottleneck to affect the entire platform.
Shopify's engineering history points to five important parts of that architecture: distributed cloud infrastructure, database sharding, isolated application environments, lightweight execution through WebAssembly, and continuous resilience testing.
Five numbers reveal the scale of the system
On November 28, 2026, Shopify CEO Tobi Lütke shared five figures from Black Friday, November 27:
tobi lutke@tobiBig Black Friday for Shopify merchants:
- $7.6B in sales on Friday
- Peak sales hit $6.8M per minute
- Edge peaked at 13.1M requests per second
- Database queries peaked at 71.2M requests per second
- Shopify Functions peaked at 252K per secondNov 28, 2026 · View on X
| Metric | Black Friday 2026 |
|---|---|
| Merchant sales | $7.6 billion |
| Peak sales per minute | $6.8 million |
| Edge requests | 13.1 million per second |
| Database queries | 71.2 million per second |
| Shopify Functions executions | 252,000 per second |
The sales figure represents transactions across Shopify's merchant network, while the other three figures describe different layers of platform activity.
An Edge request is not necessarily a complete page load or a unique shopper. A database query is not the same as a transaction. A Shopify Function execution does not necessarily represent a completed checkout.
These metrics measure different workloads, but together they show the amount of activity the platform must coordinate during a major commerce event.
Source: Tobi Lütke on X. Additional reporting: Ecomdaily.
1. Distributed cloud infrastructure: Scaling beyond individual servers
Shopify began migrating its infrastructure to Google Cloud in 2016, moving away from operating its own data centers.
The transition evolved from moving existing workloads to building a more cloud-native infrastructure.
According to Google Cloud's Shopify Compute case study, Shopify now runs different workloads on infrastructure designed for different performance requirements:

- Google Compute Engine: Runs core commerce services and database workloads.
- Google Kubernetes Engine (GKE): Orchestrates microservices and allows them to scale as demand changes.
- Persistent Disk and Hyperdisk: Provide storage for general-purpose and high-performance workloads.
- Specialized compute instances: Allow infrastructure teams to match CPU, memory, and storage configurations to individual workloads.
The important principle is workload specialization.
A database has different performance requirements from a storefront service. A search service has different resource needs from a background processing job. Running everything on identical infrastructure would make resource allocation less efficient.
By distributing workloads across different compute and storage environments, Shopify can scale the components that need more capacity without treating the entire platform as one oversized application.
2. Database sharding: Avoiding one giant database bottleneck
The most striking number in Shopify's announcement is 71.2 million database queries per second.
The architectural challenge is straightforward: a single database cannot keep growing indefinitely to serve an increasingly large commerce platform.
Shopify addressed this problem through horizontal database sharding.
In its engineering article, Upgrading MySQL at Shopify, the company described its Core database infrastructure as horizontally sharded by shop across hundreds of shards.

Each shard has:
- One primary writer.
- Five or more read replicas.
- Its own allocated compute resources.
This design distributes database workloads rather than forcing every merchant's data through one central database.
The writer handles database changes, while replicas serve read traffic. Separating these workloads helps reduce pressure on the primary database and supports a much larger overall system.
Shopify also developed automation to manage database infrastructure.
One example is Mason, a self-healing service designed to replace failed database virtual machines automatically. Rather than relying entirely on engineers to provision replacements manually, the system can respond to infrastructure failures programmatically.
Another important challenge is shard balancing.
Merchants do not generate equal amounts of traffic or store equal amounts of data. A small number of high-traffic shops can create an uneven workload if they share the same shard.
Shopify's engineering team described how it moves shops between shards with virtually zero customer-facing downtime in Shard Balancing: Moving Shops Confidently with Zero-Downtime at Terabyte-scale.
The objective is not simply to add more databases. It is to distribute demand so that no single database becomes a platform-wide bottleneck.
3. Pods architecture: Containing failures before they spread
Sharding improves scalability, but it introduces another problem: what happens when one shard fails?
In 2018, Shopify explained why database sharding alone was not enough.
Its earlier application architecture contained operations that could touch multiple shards. If one shard became unavailable, an operation involving all shards could fail across the wider platform.
Shopify responded by introducing a more isolated application architecture called pods.
As explained in A Pods Architecture To Allow Shopify To Scale, each pod contains a defined group of shops and its own isolated data stores.

Requests are routed to the appropriate pod. The system is designed to prevent actions from freely crossing between pods.
This creates an important reliability boundary.
If a problem occurs within one pod, the architecture limits the potential for that failure to spread across unrelated groups of shops.
The idea is similar to compartmentalization in other distributed systems: isolate workloads so that one failure does not automatically become a platform-wide incident.
Horizontal scaling increases capacity. Isolation helps protect availability. Both are necessary at Shopify's scale.
4. WebAssembly: Executing custom commerce logic efficiently
Shopify Functions recorded 252,000 executions per second during Black Friday 2026.
Functions allow merchants and app developers to implement custom commerce logic, including discount rules, delivery options, and checkout behavior.
Running this logic at scale creates a difficult engineering problem.
Shopify must execute code from different developers while controlling resource usage and protecting the stability of its own infrastructure.
Its answer includes WebAssembly (Wasm).
In Bringing JavaScript to WebAssembly for Shopify Functions, Shopify explains that Functions run as WASI-compatible WebAssembly modules.
Each module operates in a sandbox with isolated memory. The host system exposes only the capabilities the module needs.

This matters for two reasons:
- Isolation: Custom code runs in a controlled environment rather than having unrestricted access to the host system.
- Efficiency: WebAssembly provides a compact execution format suitable for running small, focused units of custom logic.
Shopify's current WebAssembly documentation also describes support for languages such as Rust and JavaScript, provided they compile to the required Wasm format.
The architecture allows Shopify to support customizable commerce behavior without treating every merchant's custom logic as a separate, unrestricted server application.
5. Resilience engineering: Preparing for traffic before it arrives
Infrastructure capacity is only part of the equation. Shopify also needs to know what happens when systems approach their limits or individual components fail.
Its 2025 BFCM preparation article offers a detailed look at this process.
According to How we prepare Shopify for BFCM, preparation started months before the shopping event.
The engineering team conducted regular load simulations, including tests targeting 150% of the previous year's BFCM traffic.
The program included:
- Load testing: Simulating browsing, cart additions, checkout, and other real commerce activity.
- Chaos engineering: Intentionally introducing network failures, latency, and service disruptions.
- Regional failover: Testing whether traffic could be moved away from affected regions.
- Scale testing: Evaluating the entire platform under extreme traffic rather than testing isolated components only.
Shopify's engineering teams also used these tests to identify specific bottlenecks.
The company reported issues involving Kafka partitions, memory consumption, connection timeouts, and regional traffic routing. Teams then optimized the affected components and tested them again.
One particularly important distinction is between load testing and full-scale testing.
A service may perform well when tested independently but behave differently when databases, APIs, analytics, checkout, and background jobs all experience peak demand simultaneously.
That is why Shopify's program included large-scale tests of interconnected systems, not just isolated performance benchmarks.
What 71.2 million queries per second actually tells us
Shopify's Black Friday figures demonstrate the scale of activity its infrastructure handled. Its engineering publications explain the architectural principles behind that capacity.
The bigger story is how these technologies work together:
| Engineering layer | What it solves |
|---|---|
| Distributed cloud infrastructure | Allocates computing resources across different workloads |
| Database sharding | Distributes data and query demand |
| Pods architecture | Limits the impact of failures |
| WebAssembly | Runs custom commerce logic in controlled environments |
| Load and resilience testing | Finds bottlenecks before peak demand arrives |
No single technology explains Shopify's performance.
The platform's ability to handle extreme traffic comes from combining distributed infrastructure with data partitioning, workload isolation, automated recovery, and extensive testing.
The 71.2 million figure is not just a database record. It is a measure of the engineering coordination required to operate commerce infrastructure at global scale.
Ask AI next
- How can I tell if my own store was affected by any slowdown during Black Friday 2026?
- What tools can I use to monitor my own store's performance and query load during peak traffic?
- Does running many third-party apps strain Shopify Functions execution capacity for my own store?
- How does Shopify decide which shops get grouped into the same pod?
- Do other ecommerce platforms like WooCommerce or BigCommerce use similar sharding or pod architectures at this scale?