Push Notification Traffic Spike: How to Load Test the Send
A push or email blast sends a large share of users to your backend within seconds. Model the arrival curve, app cold-start fan-out and staged sends, then test it.
A push notification or marketing email blast sends a large share of your users to the backend inside a few seconds. The arrival rate jumps right after the send, peaks within the first minute or two, then decays as the audience finishes opening or ignores the message. To load test it, model the send as an open arrival-rate spike, include the API calls an app makes on cold start, and run the same audience as one send and as staged, jittered batches. This page gives the model, a numbered plan, a worked example and the pass criteria.
Prerequisites
- A production-like test environment with its own data and no real customers.
- The campaign history: audience size, send time and request rate at one-minute resolution.
- A recording of one app cold start, listing every API call.
- A MaxoPerf workspace and permission to run tests against the target.
- Agreement with the campaign owner on pass criteria and on who aborts the run.
Why a send creates a synchronized spike
Organic traffic is the sum of many users acting on their own clocks. A send removes that independence. The notification service hands thousands or millions of messages to the push provider at nearly the same time, devices receive them close together, and the users who respond do so inside a short window. Your backend sees a step in arrivals, not a ramp.
Two other properties make it harder than a normal peak:
- The audience is chosen by the sender, so the spike lands on the endpoints the campaign links to, not on the whole product evenly.
- The timing is known in advance. Marketing schedules the send, which means you test it before launch and nobody calls the load a surprise.
The same shape appears with email blasts, SMS links, in-app banners and a TV advert that shows a QR code. The contact centre peak event guide models a similar burst caused by an outbound message.
The arrival curve after a send
You do not need a vendor-specific figure to describe the shape. After a send at time zero, expect three phases:
- Rise. Arrivals climb for as long as it takes the messages to reach devices and users to react. This is short for pushes that show on the lock screen and longer for email.
- Peak. The highest arrival rate falls shortly after the send. This is the number that decides whether instances, connection pools and database limits hold.
- Decay. Arrivals fall as most users have either responded or ignored the message. The tail runs long, with a second smaller bump when users check their phone later.
Measure your own curve from the last campaign. Pull the request rate for the landing endpoints at one-minute or finer resolution, align it to the send time, and read off the peak, the time to peak and how long it takes to fall to half. Those three numbers are better inputs than any generic assumption. If you have no history, run a small canary send to an internal list and read the shape from that.
What one app open costs
One user opening the app is not one request. Cold start usually fans out into a set of calls at once, and the exact set is specific to your app. Common ones are:
- A configuration or feature-flag fetch.
- An auth token refresh or session validation.
- The home feed or the screen the notification links to.
- Profile and entitlement lookups.
- Image and asset requests, which land on your CDN or, on a miss, your origin.
- Analytics and device-registration calls.
Count the calls for your app by recording a real cold start with the proxy or the mobile app’s network logs. Multiply the arrival rate of opens by the calls per open to get the request rate by endpoint. The result is rarely uniform. The auth refresh and config endpoints are often hit by every open, so they carry the highest per-user load and are usually the first to saturate. The mobile backend load testing guide covers how to build this scenario from a recording.
Cold caches add a second layer. A first-time open after the send hits the feed and the image CDN with the same few objects. If the objects are not warm, those requests become origin reads at the worst moment. See cache stampede load testing for how to isolate that effect.
Staged sends and jitter
The cheapest mitigation sits on the sending side. Instead of delivering the whole audience at one instant, split it into batches and space them out. Two controls matter:
- Batch size and spacing. Smaller batches at wider intervals lower the peak arrival rate in proportion to how far they spread the audience.
- Jitter. A random delay within each batch prevents the batches from lining up on a schedule boundary.
Staging has a cost: later batches reach users later, which matters for time-limited offers. It also does not remove the spike for opens that are already synchronized by something else, such as a live event. Treat the batch plan as a hypothesis, and test it against the single send. The comparison is the point of the experiment. Client-side jitter in your retry and refresh logic deserves the same treatment. A client that retries on a fixed timer after a failed refresh turns a spike into a retry storm.
Modeling the spike as an open arrival rate
A push spike should be an open workload, in which new users arrive at a rate you set whether or not earlier users have finished. Users do not wait for your backend to recover before opening the app. In a closed model, with a fixed number of virtual users, slow responses reduce the rate at which the pool sends new requests, so the test eases off exactly when the system struggles. Arrival rate vs concurrency explains the difference in detail.
Describe the load as a series of arrival-rate stages: a baseline, a short rise to the peak, a hold, and a decay that follows your measured curve. Pair it with a ceiling on in-flight sessions so a collapsed backend does not make the generator spawn unbounded work. For the capacity side, read spike tests and autoscaling lag, because a spike that lasts two minutes ends before a slow autoscaler adds anything.
Test plan
Run this against a production-like environment, with synthetic users and a send channel that never reaches real customers.
- Pull the history. From the last campaign, record the baseline rate, the peak, time to peak and time to half. Write the audience size next to them.
- Record the cold start. Capture the API calls for an app open from the notification and list them by endpoint, with payload and cacheability.
- Build the open scenario. Turn one open into a scenario with the real call sequence, think times between screens and synthetic accounts. Use enough distinct accounts that the caches do not see one user.
- Define the profile. Set the arrival-rate stages from your history, plus a larger step you want headroom for.
- Set the gates. Write the pass criteria before the run: p95 and p99 latency on the cold-start endpoints, error rate, and recovery time to baseline after the decay.
- Run the single send. Execute the full spike, record per-endpoint latency, errors, queue depth, instance count and database connections.
- Run the staged send. Replay the same audience as batches with jitter. Keep every other setting identical.
- Compare. Put the two runs side by side on peak rate, worst endpoint and time to recover. Decide on the batch plan from the data.
- Fix and repeat. Address the first saturated endpoint, then rerun.
Worked example
These numbers are hypothetical, chosen to show the arithmetic. Your campaign will differ.
Suppose a send targets 200,000 users. In the last campaign, 12 percent of the audience opened the app within the first five minutes, and half of those opens fell in the first minute. That gives 24,000 opens in five minutes and about 12,000 in the first minute, an average of 200 opens per second in that minute. Assume the peak second runs at roughly twice the minute average, so 400 opens per second.
If a cold start makes 6 API calls, the backend sees about 2,400 requests per second at the peak, against a normal baseline of, say, 300. The auth refresh is one of the six, so it takes 400 requests per second by itself, from a service that sees a handful per second on a normal day.
Now stage the send in 10 batches of 20,000, one minute apart, with up to 20 seconds of jitter. If the response behaves the same, the same 24,000 opens spread over about ten minutes. The peak drops from roughly 400 opens per second to the order of 40 to 80, depending on how the jitter overlaps and on how long the response tail is. Verify rather than trust that estimate: overlapping tails from adjacent batches add up, which is why the staged run is part of the plan and not an assumption.
Failure criteria
Agree on the thresholds with the team that owns the campaign. Reasonable gates for this scenario include:
- p95 latency on the auth, config and feed endpoints stays under a threshold tied to what the app needs to render the first screen.
- Error rate for those endpoints stays under an agreed ceiling for the whole spike, and not only the average.
- No dropped or duplicated writes, such as device registrations or consent records.
- Time from the peak to baseline latency stays under a stated limit.
- The CDN or cache hit ratio on the campaign’s images stays above the level your origin absorbs on a miss.
Add an abort rule for the run itself, so a broken environment does not keep absorbing load.
Running it in MaxoPerf
MaxoPerf’s docs describe an open workload model with a target requests per second, a staged ramp profile that takes throughput targets for an open stepped test, and a spike test guide. Use those to build the rise, hold and decay. The cookbook also shows how to change the target rate live during a run, which helps when you want to push past the planned peak.
Failure criteria let you gate the run on metrics such as p95 latency and error rate, and mark it failed when a threshold is breached. A run also stops its runners early on a breach when you enable early stop. For the app-open scenario itself, record the calls with the proxy recorder or write the sequence in the engine you already use. MaxoPerf drives the HTTP side of the spike. It does not send real push notifications, so use a stub send step or a direct trigger for the arrival profile.
Troubleshooting
- The generator never reaches the planned peak. Raise the in-flight ceiling or add runners, then confirm the target rate in the run’s rate chart.
- Latency looks fine but the error rate climbs. Check the auth refresh and config endpoints first, because every open calls them.
- The staged run shows the same peak as the single send. Your batches overlap. Widen the spacing or shrink the jitter window and rerun.
- The second run is faster than the first. Caches stayed warm. Reset synthetic accounts and cache state between runs.
- Results differ from the last real campaign. Recheck the calls per open and the share of users who open, then update the model.
Questions this article answers
Why does a push notification cause a traffic spike?
A send reaches many devices at nearly the same moment, and each user who opens the app triggers a burst of API calls. The arrivals are synchronized by the send, not spread out like organic traffic, so the rate jumps within seconds and then decays.
How do you load test a push notification campaign?
Model the send as an open arrival-rate spike: a fast rise, a decay, and the cold-start API calls each opening user makes. Run it against a production-like environment with synthetic users, and gate the run on latency and error criteria.
Does sending pushes in batches reduce the spike?
Yes, if the batches are spaced and jittered. Spreading the same audience over several minutes lowers the peak arrival rate, but test it, because a batch schedule with gaps still produces overlapping peaks.
Should a push spike test use virtual users or an arrival rate?
Use an arrival rate. Real users open the app on their own schedule whether or not your backend is slow. A fixed pool of virtual users slows down when responses slow down and hides the overload.