Knowing when a set of queued jobs had all finished meant a counter in Redis and a race nobody was confident about. allowFailures decides the semantics: without it…
A job dispatched inside a transaction can be picked up by a worker before the transaction commits, and the worker then cannot find the row it was told…
Promise.all rejects on the first failure and discards every other result, including the ones that had already succeeded. The result objects have a status discriminator rather than being…
Knowing when a set of queued jobs had all finished meant a counter in Redis and a race nobody was confident about. allowFailures is the flag that decides…
Scheduling work for later by storing a row and polling it is a scheduler you now maintain, and every broker worth using has a delay mechanism already. Knowing…
Retrying a flaky upstream is a loop, a sleep, an attempt counter and a decision about which failures are retryable — four things that get written slightly differently…
A type-ahead fires a request per keystroke and the responses arrive out of order, so the results for a shorter query can overwrite the results for a longer…
An effect with an empty dependency array captures the first render’s variables permanently, so a timer set up once reads values that stopped being current seconds later. A…
A deduplication table is a check bolted on afterwards, and some operations are naturally repeatable — which is better, because there is nothing to get wrong. Designing the…