Meridian Telemetry v2.4 · stable

Retries & backpressure

Retry only what is safe to retry, and shed load locally before the server sheds it for you.

What to retry

StatusRetry?Strategy
202noAccepted. Re-submit only events listed in errors.
400 / 401 / 403 / 422noDeterministic failures; fix the request first.
408 / 429 / 5xxyesExponential backoff with jitter, honour Retry-After.

Backoff

Start at 250 ms, double to a 30 s ceiling, and add ±20% jitter. Cap total attempts at 6; beyond that, spill the batch to a local queue and retry on a slower timer.

delay = min(30s, 250ms * 2**attempt)
delay *= random.uniform(0.8, 1.2)
sleep(max(delay, retry_after))

Backpressure

A sustained 429 rate above 1% means the client is emitting faster than the plan allows. Two options:

Do not retry with a new Idempotency-Key. That converts a safe retry into a duplicate write, which Meridian cannot deduplicate.

Connection reuse

Keep-alive matters more than batch size for cross-region clients: a fresh TLS handshake costs roughly 2–3 round trips. Reuse a single HTTP/2 connection per worker and cap concurrency at 8 per core.