Why a signup spike is a rate-limit problem
An API burst limit depends on bucket size, refill rate, and how fast your signup sync sends requests. A launch goes live, a newsletter lands, or a partner mentions you, and for a few minutes your signup count looks like a month of normal traffic. The trouble is what happens downstream. Each new account often triggers a chain of calls: create the contact in your CRM, write the plan and source fields, add the account to an onboarding sequence, and push an activation event into your product's API so the right emails and in-app messages start. If one signup means four or five requests, a spike of a few hundred accounts becomes thousands of requests in a short window.
Most sync jobs were written for the average day, not the peak. They loop over new rows, call the API as fast as the network allows, and handle errors by logging them. That works until the provider starts refusing requests. Then the sync either drops work silently or retries so aggressively that it makes the problem worse.
The fix starts with understanding the limit itself. Once you know those, you can estimate how long a spike will take to drain and decide whether to slow down, queue the work, or ask for more headroom.
This post walks through each number, shows the arithmetic using illustrative figures from Atlassian's documentation, and ends with a checklist you can run before your next launch. The linked Atlassian page uses a bucket holding 100 requests, a refill of 10 requests each second, and a sending rate of 10 requests each second as examples, not published limits for every endpoint. Any scenario numbers in this post are illustrations. Your provider's limits may be different, so check their current docs before you plan around them.
Number one: the bucket size
A bucket holds a fixed request allowance. Each request uses one unit of that allowance. When the bucket is empty, further requests have to wait or get rejected. Atlassian's developer documentation describes the bucket size as a burst buffer that allows temporary traffic spikes above the steady rate, illustrating it with an allowance for 100 requests (Atlassian Developer, "Rate limiting").
That bucket size is the number that matters most for a spike. It is how many requests your sync can send at full speed before it has to slow down. With a bucket holding 100 requests, the first 100 calls in a burst can go out back to back. The next call has to wait for allowance to return.
The bucket size does not tell you how long a spike will last or how fast allowance returns. Those are the next two numbers.
The bucket is also not always one shared pool. The same Atlassian page notes that endpoints can behave differently: "/rest/api/3/issue and /rest/api/3/search each have their own burst behavior for the same tenant" (Atlassian Developer, "Rate limiting"). If your sync writes to one endpoint and reads from another, you may have two buckets to plan around, not one. Check each endpoint you call, because the limit you hit may not be the one you were watching.
Number two: the refill rate
The refill rate is how much request allowance returns to the bucket each second. It sets your steady rate, the pace you can keep up indefinitely. Atlassian's page illustrates this with a bucket holding 100 requests and a refill allowing 10 requests each second: after exhausting the bucket, you can sustain 10 requests each second by consuming the allowance as it returns (Atlassian Developer, "Rate limiting").
Use that example to think about a real spike. Suppose a launch means your sync has a large batch of new accounts to process, and each account needs several calls. With a bucket holding 100 requests and a refill rate of 10 each second, the first 100 calls go out immediately. Every call after that can only go out as allowance returns, at the refill pace. Nothing has failed. The sync is working at the speed the bucket allows, and the total time depends on how many calls you need in all.
The refill rate also shows the cost of sending too fast. Suppose your sync sends at double the refill rate, so it sends twice as many requests each second as the provider allows back into the bucket. The bucket loses the difference every second, which is the refill rate itself. With allowance for 100 requests and a refill of 10 each second, the bucket empties in about ten seconds. After that, the sync can only keep pace with the refill, and every extra request joins a backlog. You are not borrowing from the future. You are falling behind, and the backlog grows for as long as the spike lasts.
Number three: the request rate your sync actually sends
The third number is the one you control: the rate your sync sends at, measured for each endpoint. Atlassian advises designing around steady request rates, giving 10 requests/second for GET endpoints as an example (Atlassian Developer, "Rate limiting"). It is not a universal limit, and your own endpoints may have different numbers.
This is the number teams forget. The bucket and the refill rate belong to the provider. Your sync's send rate is set by your code, and it changes whenever someone adds a second worker, raises a batch size, or retries a failed job. A sync that was safe with one worker can exceed the steady rate with several.
A practical rule: set your target send rate at or below the refill rate you know about, and let the bucket absorb the short peaks. If the provider documents one number, use it. If the docs describe separate endpoint limits, set a rate for each endpoint, not one global figure for the whole sync.
Work out your own numbers before the spike
Here is the sequence to follow:
- Count calls for each signup. Trace one account through the sync and count every request, including reads used to check for duplicates. Teams often forget the lookups.
- Estimate peak signups each minute. Use your last launch as a starting point, then add a safety margin. The margin is a judgment call. Pick one you can defend in a planning meeting.
- Convert to calls each second. Multiply calls for each signup by peak signups each minute, then divide by the number of seconds in a minute. Compare the result with the refill rate.
- Estimate the drain time. If your calls each second are above the refill rate, the bucket will empty. Work out how long the bucket lasts, and how large the backlog grows over your activation window.
- Decide what to do about the gap. If the backlog clears before your activation window closes, queueing is enough. If it doesn't, you need to shrink the work for each signup, change what runs synchronously, or ask the provider about more headroom.
Here is the method applied to Atlassian's illustrative bucket and refill values; check your own provider's current figures before using it. A bucket holding 100 requests refilling at 10 each second can absorb one large burst, then sustain 10 calls each second. If your sync needs more than that sustained pace during a spike, the excess waits in a queue. The longer the spike lasts, the longer the queue takes to clear once the spike ends. That is a timing problem you can plan for, not a failure. The fix is a faster refill from the provider, fewer calls for each signup, or a rule that moves non-urgent calls later.
Read the headers before you hit the limit
Many APIs tell you how much of your allowance you have used. Intercom's documentation says that "Authenticated API responses include the following headers, so you can track your usage before you reach the limit" (Intercom Developers, "Rate Limiting"). That is the signal you want. A sync that reads those headers can slow down while there is still room, instead of finding out when requests start failing.
Zendesk documents a similar idea. Its headers "provide more information about the account's current rate limit and the number of requests remaining in the current minute" (Zendesk Developer Docs, "Rate limits"). Notice that the window is the current minute. A remaining count tells you how much room is left in that window, and your sync should use it to pace the next batch.
Read the header names from the provider's docs. They differ between APIs, so do not copy one provider's header names into another provider's client. Also, treat remaining-count headers as a pacing tool, not a guarantee. Your sync should still handle rejections.
There is a caution in Atlassian's documentation about beta periods. It says that "During the beta period, these headers are informational only — requests will not receive HTTP 429 responses based on quota usage" (Atlassian Developer, "Rate limiting"). This describes quota enforcement during that beta period, rather than every limit on an endpoint in beta. Before you build a plan on headers alone, find out which phase each endpoint is in. The same page says that "The new rate limits will apply to all Forge, Connect, and OAuth 2.0 (3LO) apps" (Atlassian Developer, "Rate limiting"). If your integration uses one of those app types, check the page's current rollout and limits before configuring your sync.
Handle the rejections you do get
Even a careful sync will sometimes be rejected. The response you see depends on the provider, but the handling should be consistent. Atlassian's page notes that "Some transient 5xx responses (such as 503) may also include a Retry-After header" (Atlassian Developer, "Rate limiting"). The word that matters there is "some." Do not write code that assumes every response will carry a retry hint.
When a request fails for capacity reasons, use this order:
- If a Retry-After header is present, wait at least that long before trying the request again.
- If there is no hint, back off exponentially. Wait a short time, then double the wait after each failed attempt, up to a cap.
- Add jitter. Randomize each wait a little so that a hundred workers do not all retry in the same second. Without jitter, a spike turns into a series of smaller spikes.
- Set a retry limit. After a fixed number of attempts, move the job to a failed list where a person or a later job can review it.
- Be careful with writes. Retrying a create call can make duplicate contacts. Use an idempotency key or a lookup-before-create step if the API supports one. If it does not, make the job able to detect and skip duplicates.
One more point: a rejection is a signal to slow down, not an instruction to retry immediately. A sync that retries at full speed after a rejection will hit the same wall again and spend its budget on requests that will fail. For related checks, see signup API errors before retry.
Build a queue, not a loop
The durable fix is architectural. Stop calling the API from the signup handler, and stop looping over new rows at full speed. Put each signup event on a queue, and let a worker drain that queue at a rate you set from the three numbers above.
A workable design has a few parts:
- Producer. The signup event goes onto the queue as soon as the account is created. The producer makes no provider calls itself, so a spike cannot block the signup page.
- Queue for each endpoint. If two endpoints have separate buckets, give each its own queue and its own rate. A slow endpoint then does not hold up a fast one.
- Client-side bucket. The worker keeps its own request bucket, sized to match the provider's numbers, with some margin below them. Your client-side bucket is what keeps you under the server's limit.
- Priority for activation. Mark the calls that start onboarding as urgent, and let them skip ahead of enrichment, tagging, and reporting. A welcome email that arrives late is worse than a dashboard field that arrives later.
- Dead-letter list. Failed jobs go to a list with the account ID, the endpoint, and the last error. You can replay them after the spike without guessing.
- Idempotent writes. Every job should be safe to run twice. This makes retries and replays uneventful, which is what you want.
Queues add delay and one more component to watch. For a small team, a managed queue service or a database table with a worker is enough. The point is that the sync now runs at a rate you chose, instead of one the network happened to allow.
Keep the numbers where your team can see them
Limits change. Providers adjust them, add endpoints, move features out of beta, and change what headers they send. The numbers you wrote down last year may be out of date when the next launch comes.
Put the three numbers for each endpoint in configuration, not in a comment or a wiki page nobody opens. Next to each number, record the page it came from and the date you checked it. When the provider changes its docs, you will know which values to review.
Add two alerts. The first tracks queue age: the time between when a signup event was created and when its sync job completes. Alert when the oldest job is older than your activation window. That tells you the backlog has started to matter, which is the thing you care about. The second tracks the rate of rejections. A rising count of capacity failures means your client-side rate is wrong, or someone else is sharing the same allowance.
Finally, agree in advance on who can ask the provider for more headroom. Bring your calls-for-each-signup count, your peak estimate, and your drain-time calculation. A clear request with numbers is easier to act on than a general complaint that the sync is slow.
A pre-launch checklist
Run through this before any campaign that could produce a spike:
- Count calls for each signup for every sync path, including lookups.
- Write the bucket size, refill rate, and each endpoint's send rate into configuration, with the source page for each.
- Calculate the drain time for your expected peak, and for a peak twice that size.
- Confirm which headers you will read, and what each one reports.
- Check whether each endpoint you use is in beta, and what that means for enforcement.
- Confirm that retries honor Retry-After when it is present, and back off with jitter when it is not.
- Confirm that writes are idempotent, or that duplicates can be detected.
- Set a queue-age alert tied to your activation window.
- If the provider offers a sandbox, run the sync against it at the planned rate before launch.
- Name the person who can contact the provider if the backlog grows.
What to take away
A launch that looks like a flood then becomes a backlog you can watch and clear, which is a much better problem to have.
Related guides: Signup name fields: 6 parts explained with CLDR · Signup rate limits: 4 tools compared by limit unit.