An entry delivered to a consumer and never acknowledged stays in the pending entries list indefinitely, which is the mechanism that makes recovery possible and the one that…
Reading a Redis stream directly gives every consumer every entry, which is right for fanout and wrong for a work queue. The > means entries never delivered to…
The cache expired at noon and the database fell over at 12:00:01. A lock, a two-tier expiry, jittered TTLs, and versioned keys — in that order of importance.
Counting failures in a PHP object means each of fifty workers keeps its own count and opens independently, which is fifty times more slow calls than intended. Using…
Caching what a query returned saves the round trip and leaves the hydration, the mapping and the aggregation to happen on every request anyway. Profiling usually shows the…
BLPOP is atomic and destructive, so a consumer that crashes between popping and finishing has lost the message with no record that it existed. The * generates an…
A thousand cache entries written during a deploy with the same TTL expire in the same second, and the stampede recurs on a fixed interval forever. Deriving the…