Skip to content

Signing up for Discord? Some of our domains are accepted there. See which ones on the Domains page.

CyberTemp
All posts

Load-Testing Your Signup Email Pipeline Before Launch

CyberTemp6 min read

Need a disposable inbox right now?

Spin up a temporary email address in seconds — no signup, no spam, no trace.

Get a free inbox

Your signup flow works fine in staging: one test account, one email, arrives in two seconds. Launch day looks different. A thousand signups hit within the first hour, your mail provider's connection pool saturates, and the OTP that arrived in two seconds during testing now takes forty. Users who don't get their code before your five-minute expiry window closes just leave. None of this shows up in a test suite built around one signup at a time — it only shows up once real concurrency hits a pipeline nobody load-tested.

The fix is straightforward: simulate the concurrency before launch day does it for you. Disposable inboxes make this cheap to set up, because you don't need a thousand real test accounts spread across a thousand real mail providers — you need a thousand throwaway addresses you can generate and poll programmatically.

What breaks under volume that doesn't break under one send

A single test send tells you the email pipeline works. It tells you almost nothing about what happens when a hundred signups fire in the same thirty seconds:

  • Queue backpressure. Your transactional email provider queues under load instead of rejecting, so nothing errors — it just gets slow, and slow is invisible until someone's OTP expires before it arrives.

  • Connection pool exhaustion. If your app opens a new SMTP connection per send instead of reusing a pool, concurrent sends compete for the same limited slots and start timing out under exactly the load a launch produces.

  • Retry storms. A provider hiccup triggers your retry logic on every in-flight send at once, which multiplies load right when the provider is already struggling — the retry meant to fix the problem makes it worse.

  • Provider-side throttling. Sending fast from a new or low-reputation domain can get you rate-limited by the receiving mail server, not just your own provider, and that only shows up once you're sending faster than one at a time.

Testing for these means generating real concurrent load and watching where the pipeline actually slows down, not asserting that a single email arrived.


Generating concurrent signups against disposable inboxes

The pattern: mint a batch of unique addresses, fire your signup flow against all of them at once, and read each inbox back through the same endpoint that created it. GET /getMail creates the inbox on first read, so there's no separate setup call slowing down the batch:

import asyncio, httpx, uuid, time

API_KEY = "tk_..." HEADERS = {"X-API-Key": API_KEY} BASE = "https://api.cybertemp.xyz"

def batch_addresses(n): return [f"loadtest-{uuid.uuid4().hex[:8]}@cybertemp.xyz" for _ in range(n)]

async def signup_and_wait(client, address, timeout=30): start = time.monotonic() await trigger_your_signup(address) # your app's own signup call deadline = start + timeout while time.monotonic() < deadline: r = await client.get(f"{BASE}/getMail", params={"email": address}, headers=HEADERS) messages = r.json() if messages: return time.monotonic() - start await asyncio.sleep(1) return None # timed out

async def run_batch(n): addresses = batch_addresses(n) async with httpx.AsyncClient() as client: return await asyncio.gather(*(signup_and_wait(client, a) for a in addresses))

Run this at increasing values of n — ten, then fifty, then whatever your expected launch-day peak is. The point where results stop looking like the ten-signup run is the point where something in your own pipeline is the bottleneck, not inbox delivery.


Measure percentiles, not pass or fail

A load test that reports "980 of 1000 succeeded" hides the number that actually matters: how long the slow ones took. A signup that takes eleven seconds instead of two still "succeeds," but eleven seconds is long enough that a real user has already closed the tab.

import statistics

durations = [d for d in results if d is not None] timeouts = len(results) - len(durations)

print(f"p50: {statistics.median(durations):.1f}s") print(f"p95: {statistics.quantiles(durations, n=20)[18]:.1f}s") print(f"timeouts: {timeouts}/{len(results)}")

p50 tells you the typical experience. p95 tells you what your slowest real users are living through, and it's usually the number that predicts support tickets. If p95 climbs sharply between your fifty-signup run and your five-hundred-signup run, that's your pipeline's actual ceiling — better to find it against a batch of throwaway addresses than against real signups on launch day.


Watch your own plan limit while you do this

Running a few hundred concurrent getMail polls against one API key can hit your own rate ceiling before it tells you anything about your signup pipeline. GET /getPlan returns your current tier's request limit, so you can size the batch to stay under it instead of guessing. FREE keys are built for scripting one signup at a time, not simulating a launch — if your batch runs are hitting 429s before you learn anything about your own pipeline, that's a sign to size the test against your plan rather than fight the rate limit. Handling rate limits and retries in CyberTemp API scripts covers the backoff pattern if you need to keep the batch large anyway.

Clean up after each run with DELETE /inbox?email=... for every address in the batch. A five-hundred-address load test that never tears down its inboxes eats into the same limit the next run needs:

async def cleanup(client, addresses):
    for address in addresses:
        await client.delete(f"{BASE}/inbox", params={"email": address}, headers=HEADERS)

Bottom line

A signup flow that's only ever been tested one email at a time hasn't actually been tested for launch day — it's been tested for a demo. Disposable inboxes make it cheap to generate the concurrency a real launch produces, and the percentiles from that run tell you where the pipeline actually breaks before your users find out for you. This is the same instinct behind testing deliverability before you ship a signup flow — a green CI run and a working launch day are different claims, and only one of them gets tested by default.

If load testing your signup pipeline is a recurring part of shipping rather than a one-time pre-launch check, picking the right plan for your workflow is worth doing before the rate ceiling picks itself for you mid-test. The paid tiers raise both the concurrent-inbox count and the request rate enough to run a five-hundred-signup batch without the test itself becoming the bottleneck. For a smaller launch or a one-off sanity check, cybertemp.xyz works in the browser too — generate a handful of addresses by hand and watch how long mail actually takes to land before you bother scripting anything.

Share
    Load-Testing Your Signup Email Pipeline Before Launch | CyberTemp Blog