
If there is no difference between retrying a request for 10 minutes and 10 hours, why wouldn't you retry it for 10 days or longer?
My current team at work is responsible for a lot of data ingestion, much of it coming through streams. Many of these microservices look similar:
- Do some basic validation on the data.
- Upsert the data to a data store, protecting against out-of-order updates with conditional writes.
- Do some processing, likely emitting side effects if the new data is meaningfully different from its previous state.
The data store and downstream services can have an outage at any time, and they do. In that case, my services negatively acknowledge consumed messages that fail to process, such that they will be retried.
Ignoring the fact that these services aren't allowed to build too large of a backlog because they have latency SLOs to uphold, it doesn't matter if they have a max retry window of 10 minutes, 10 hours, or 10 days. The services protect against out-of-order updates, which makes their side effects idempotent, so retries remain safe forever.
SLIs, SLOs, and SLAs: What Are They?
May 11, 2020 · 5 min read
You might have heard these terms in reference to commitments with vendors or customers, but what are they, and why should you care?
We have planned for realistic failure in the services' architectures. The services will auto-recover without human intervention, and the on-call engineer will be paged on high latency that breaks guarantees to clients. While some work may be required to mitigate the downstream outage, the remediation of retrying queued messages will be automatic.
Alert on Symptoms, Not Causes
Nov 24, 2026 · 5 min read
If your system's CPU stays at 100% for minutes, does it actually matter?
So I've found myself saying out loud:
If it is always safe for your system to retry processing, why not retry forever, or at least a very long time?
I value systems that value my time by not requiring more attention than necessary. Plan for failure, and set a high retry count or time window if you can.
I Don't Want to Have to Think About It
Jul 26, 2025 · 6 min read
I spent a substantial amount of time in the first half of 2025 ensuring that I don't have to think about microservices my team owns that have a low rate of change.
What makes retries safe
For a message process to be considered "safe" to retry, it must adhere to:
Processing has a timeout.
It must not be possible for a message processor to hang indefinitely. Network calls to downstream systems need timeouts, and there should be no indefinite loops or waits.
Permanent failures don't get retried.
You have to be able to distinguish retryable vs. non-retryable errors. Non-retryable errors such as data failing validation should cause the message to be discarded or sent to a dead letter queue (DLQ).

What is a Dead Letter Queue?
Dec 2, 2026 · 9 min read
Where invalid or unprocessable messages go to be analyzed by hand.
Side effects have to be idempotent.
Actions such as sending an email or charging a credit card should not be repeated, so you have to be careful that retrying the processing is truly safe always. Consider using a durable execution framework if you need partial retries.
Backoff between retries.
If you're retrying because a downstream system is degraded, then you need to make sure you don't make that degradation worse. Use a backoff strategy to reduce load on that downstream system.
It must protect against poison messages.
If you require processing messages in a strict order, then retrying forever would leave you vulnerable to poison messages that block the consumption of other messages. In this case, you won't be able to retry forever, and you may want to consider a dead letter queue (DLQ).
It has to protect against out-of-order messages.
If incoming messages are not in a strict order, then you have to ensure that processing stale data cannot overwrite or undo the actions of previously processed newer data.
Retries can't last longer than the retention period.
If your messages or queue have a retention policy, then you will want to alert a human to a possible systemic problem before messages expire. Make sure your retry window is shorter than your retention window, and also consider using a dead letter queue (DLQ).


