Network Security

Checkout Timing Out During a Campaign: Traffic Spike or Attack?

QPS alone cannot separate a flash-sale peak from an attack. Four structural signals can, and a third cause is often missed entirely: your own release, retry storm or dependency failure. Classify first, then choose a layer to buy.

Short answer: Request volume cannot tell a flash-sale peak from an attack — a large jump at the start of a sale is normal business, and a script can push one endpoint to the same level. The difference is structure: path distribution, static-asset pull ratio, source and fingerprint spread, and the shape of the curve over time. Before either conclusion, rule out a third cause that looks identical: your own release, a retry storm, a saturated connection pool, or a third-party payment dependency that got slow. Only after classification does it make sense to ask which layer — edge proxy, traffic scrubbing, web application firewall, or application-side controls — you actually need.

Three possibilities, not two

When checkout starts timing out, the debate usually collapses into “traffic spike or attack”. There is a third bucket that produces the same symptoms and is more common than either: something you changed, or something you depend on, got slow.

Possibility What is actually happening What you see First place to look
Real business peak Buyers arrive together for a sale Requests rise with the campaign schedule and convert into orders Conversion funnel and capacity plan
Hostile traffic Automated requests consume a scarce resource Requests rise without a matching rise in completed orders Request structure, not totals
Internal change or dependency A release, a batch job, retries, or a payment/risk provider degrades Requests rise or responses stretch, often right after a deploy Deployment history and dependency latency

That third row is why “the monitoring says traffic is up” is not a diagnosis. A slow downstream call causes clients to retry; retries multiply requests; the multiplied requests then look like a surge in every dashboard you own. A 429 means a request was refused by a limit, while a 5xx means the server failed to produce a response — keeping those two apart in the same time window tells you whether you are looking at a cap being hit or a service breaking.

If the symptom is “slow but usable” rather than a checkout that stalls, this is a performance triage question, not an incident.

Four signals: look at structure, not quantity

Signal A real peak looks like Abnormal traffic looks like How to get evidence Can one signal decide it?
Path distribution A natural decay from home or campaign page to listing, detail and checkout A handful of expensive dynamic endpoints dominate while static requests stay flat Group access logs by path for the window and compare with a normal window No — a campaign landing page is legitimately concentrated
Static asset pull Real browsers also fetch CSS, JavaScript, images and fonts Requests hit APIs almost exclusively Compare static and dynamic request counts in the same window No — a mobile app client legitimately fetches few assets
Source and fingerprint Addresses spread across consumer networks; user agents vary; sessions exist Addresses cluster in hosting ranges; user agents repeat; referrers and session cookies are absent Group by network block, user agent and presence of a session No — corporate NAT legitimately concentrates addresses
Shape over time A sharp rise at the start time followed by a natural decay A flat or step-shaped plateau that can begin hours before the event Plot the window against your campaign schedule No — a long sale can look flat too

Request headers such as Referer and Cookie are optional, so their absence is a weak signal on its own; it becomes meaningful only alongside the other rows. Two rows together — a distorted path distribution plus a collapsing static-asset ratio, for example — are enough to move the traffic into a stricter review queue. No single row justifies a blanket block, and a blanket block during a campaign is exactly how real buyers get turned away.

The operational consequence is practical: a fixed per-IP threshold tuned for a normal Tuesday will misfire during a sale, because normal behaviour itself becomes bursty. Where thresholds are needed, they belong on specific expensive endpoints with a challenge step before a hard block.

The third cause, checked before anyone calls it an attack

Work through these before escalating:

  1. A release, feature flag or configuration refresh in the hours before the window.
  2. A batch job, backfill, cache warm-up or report scheduled to run at the same time.
  3. Retry behaviour. A retry layer stacked on another retry layer turns one failure into many calls; a client that retries after receiving a completed response can duplicate work.
  4. Connection pools, database slow queries, or a saturated worker queue behind the checkout path.
  5. Third-party dependencies — payment authorisation, fraud scoring, SMS, inventory or tax services. A real browser requests assets; a payment timeout often produces retries from your own application rather than new buyers.
  6. Monitoring agents, partner integrations and search crawlers that amplify traffic without any customer behind them.

Correlate each item with the exact start time of the slowdown. A change that lands in the same minute is a lead, not proof — confirm it against request logs and the affected endpoints. Skip this list and you will buy protection for a bug.

Which class of capability covers which layer

Class of capability Layer it works at What it does not cover Precondition for it to work at all When it becomes worth evaluating
Edge reverse proxy and CDN Connection and HTTP delivery Non-HTTP services, a slow database Traffic must actually route through it Repeated identical requests and origin exposure are the problem
Traffic scrubbing / high-defence IP Network and transport layers A valid-looking request that exhausts the application Traffic must be routed to the scrubbing point Bandwidth or connection tables are exhausted before your stack sees requests
Cloud WAF and L7 rules HTTP request inspection Volumetric floods, non-HTTP protocols Rules must match the paths that matter Malicious patterns exist at the application layer
Application rate limiting and human verification Individual endpoints and sessions Network-level floods Counts need a stable key, not just an address A few expensive endpoints are being hammered
Behavioural bot control Whether the caller behaves like a browser Business-logic abuse, credential theft Enough signal to classify without punishing buyers Sources rotate and requests themselves look valid
Origin capacity and data layer Application and database Anything that arrives before the origin Capacity plan and graceful degradation The bottleneck is genuinely inside your stack
Monitoring and runbook All layers, indirectly Anything on its own Named owner and a rehearsed order You cannot classify the event while it is happening

Scrubbing, CDN and a WAF are not three versions of the same product

They sit at different layers. Scrubbing deals with volume before it reaches your infrastructure; a CDN is a reverse proxy that terminates HTTP and can serve cached responses; a WAF inspects the request once it is HTTP. Non-HTTP TCP or UDP services cannot be parsed by a reverse proxy at all, and a valid-looking request that a WAF would happily forward can still exhaust a database. Buying the second-row answer for a fourth-row problem is the most expensive version of this mistake.

The precondition column deserves more attention than the feature lists. A scrubbing service that traffic never reaches provides no protection; a WAF rule written for a path nobody attacks provides no protection. This is the same boundary described in where a CDN’s protection stops, and it applies to every row in the table.

What you can fix yourself, and when to bring in a provider

Yours to fix: cache warm-up before the window, idempotency keys and a bounded retry count, per-endpoint timeouts and graceful degradation, connection pool sizing, slow query work, a per-path rate limit with a challenge before a block, a rehearsed runbook with a named owner, and a rollback plan for the release that coincides with the campaign.

Needs outside capability: volume that saturates bandwidth or connection tables before your stack sees it, the need to absorb traffic at a point closer to its source, regional scheduling you cannot build, or an event window where nobody on the team can own classification and response in real time.

A usable dividing line: if request structure is abnormal, the growth happens before the origin, and your own capacity changes cannot absorb it, an external absorption layer is warranted. If the growth is explained by a release, a retry loop or a dependency, no purchase fixes it. For the first case, how to evaluate a protection service once you have decided to buy is the next question; for the incident itself, the order of response is a separate discipline covered in the continuity runbook.

A decision checklist

  • Can we name the exact minute the slowdown started and line it up with deployments?
  • Do path, static-asset, source and time-shape views all come from the same window?
  • Are at least two of the four signals present, or are we relying on one?
  • Did completed orders move with requests, or did they decouple?
  • Have retries, batch jobs, pools and third-party latency been ruled out?
  • Is the affected traffic HTTP, or a non-HTTP service?
  • Do we know which layer is exhausted before choosing a class of capability?

When not to buy anything: the spike decouples from orders but started with a deploy; a retry loop explains the volume; the peak lasted only a few minutes and decayed naturally; or the bottleneck is a payment provider’s latency. Each of those is an engineering or contractual fix, not a procurement one.

Boundaries and non-applicable cases

This page classifies the event and maps it to capability classes. It is not an incident response order, a configuration guide, or a vendor comparison. It gives no capacity figures, no SLA commitments and no guarantee that any control avoids false positives. A scrubbing layer does not make an application scalable; a WAF rule does not fix a retry storm; behaviour-based classification is probabilistic, so a challenge step should precede hard blocking. If the attack is already underway, go to layer-7 flood mitigation and the runbook rather than reading a buying guide. Decisions about contracts, pricing models and who owns configuration belong to a later conversation — see the selection topic index.

FAQ

QPS jumped tenfold. Are we being attacked? Not necessarily. At the start of a sale, a sharp multiple is expected. Compare path distribution and static-asset pull in that window with a normal one, and check whether completed orders rose with the requests.

Can a high-defence IP stop checkout endpoints from being hammered? Only if the problem is volume arriving before your infrastructure. A valid-looking request that exhausts the database passes straight through a network-layer control; that is an application-layer question.

Are normal buyers being blocked because protection is too strict? It is possible, and it is the main cost of a blanket block during a campaign. Look at challenge pass rates and at whether the affected addresses match your buyer regions; prefer a challenge over a block on endpoints that convert.

It stalled for three minutes at midnight and recovered. Do we need to buy protection? Usually no. A short, self-recovering peak with a natural decay is what a well-behaved sale looks like. Capture the evidence and the baseline first; decide after the next campaign gives you a comparison point.

Options worth evaluating

Once classification is settled, an edge layer that can absorb volume and inspect HTTP requests before they reach your origin is one of several classes of capability to shortlist, alongside application-side controls and capacity work. It is not the answer when the cause was your own release or a dependency, and it is not a substitute for a runbook with an owner. The question to carry into a vendor conversation is which layer was exhausted, whether traffic can actually be routed through the control, and what happens to legitimate buyers when the control is wrong.

More on this decision cluster is in the selection topic index.

Run the same check on your domain

Enter a domain and see its DNS hosting, mail authentication and Cloudflare status in 30 seconds. Free, public records only.

Public DNS records only. No intrusive scanning. · Used only to send this diagnosis — no marketing blasts.

← Back to articles

Authorized Cloudflare Partner

Making an architecture decision for overseas markets?

Enterprise tier selection, architecture consulting, risk assessment — tell us the scenario and we will map a concrete path.

As a Cloudflare partner, we provide:

Book a consultation