ack=false means deferral, not failure
Status
Section titled “Status”Accepted.
Approx. 2026-09 (the ack:false handling was reworked by the deferral hand-back ruling of 2026-09-17; the delay-bearing form with notBefore was added 2026-11-09).
Context
Section titled “Context”Webhook targets sometimes cannot take a message yet, yet nothing is wrong with the message or the target. Examples: a rate-limited downstream, a job whose subscription asks for a delay, or work another process is still completing. Without a signal for “not yet”, a target has two bad options: return an error (the router counts a failure, may open the circuit breaker for a healthy endpoint and eventually gives up), or accept the message and drop it.
The router’s contract with a target is the HTTP response body: {"ack": true} or {"ack": false} on a 2xx.
Decision
Section titled “Decision”A 2xx with ack:false is a deferral: the target is healthy and is deliberately declining for now.
- It is breaker-neutral. It does not count as an endpoint failure.
- It retries in place on its own curve (5 seconds growing to 60), bounded by
maxInPipelineAttempts(10). Past that budget the message is released to the broker with its backoff as the redelivery delay, so broker expiry and dead-lettering can still act on it. - A target may name the delay.
ack:falsemay carrynotBefore(an RFC 3339 instant) and/ordelaySeconds.notBeforewins when it parses (converted to whole seconds from now, rounded up, at least one); otherwisedelaySeconds. - On a broker that honours a delayed return (SQS, the Postgres queue), a delay-bearing deferral skips the in-place budget and is released on its first occurrence with exactly the requested delay. NATS does not honour a delayed return, so it waits the named delay in place.
- The platform’s own
/api/dispatch/processcallback uses this signal for three cases: a job whosenot_before(creation plus subscriptiondelaySeconds) has not arrived, a delivery in progress elsewhere, and a 503 when the callback could not handle the call. It sends bothnotBeforeanddelaySeconds, so an older router reading onlydelaySecondsstill waits the correct time.
The related outcomes are kept apart on purpose. 429 is a retry in place that honours Retry-After. 4xx and 500-class answers are acknowledged (the application ran and answered, so retrying unchanged cannot help). 502/503/504, transport errors, timeouts and an open circuit release the whole message group.
Consequences
Section titled “Consequences”Good:
- A target can shape its own load without being penalised: the breaker only reacts to real failures.
- A delayed or scheduled delivery is expressed with the same mechanism as backpressure.
- The delivery table is small enough to hold in your head: acknowledge, retry in place, or release the group.
Bad:
- A target that answers
ack:falseforever keeps a message cycling. The in-place budget and the broker’s expiry bound that, but the failure is quiet because nothing is recorded as an error. - Two time fields (
notBeforeanddelaySeconds) exist for compatibility; clients must handle both. - For platform dispatch jobs a single hold lasts at most five minutes, so a long delay is a series of holds.
Alternatives considered
Section titled “Alternatives considered”| Alternative | Why not |
|---|---|
| Treat deferral as a retryable failure | Trips breakers on healthy endpoints and spends the failure budget on work that was never attempted. |
| A dedicated status code (for example 425 or 202) | Targets already speak 200 with a JSON body; a new status would have needed an SDK change everywhere. |
| Make the target accept and queue internally | Moves durability and ordering into every consumer. |