queues

  • A copy tool rejected because of a trigger

    An online schema change tool that works by adding triggers, on a table an outbox relay polls. The tool is well understood and the interaction with an existing…

  • A queued job that took its own arguments too literally

    A job constructed with a model, serialised, and executed against a row that had changed in the intervening four minutes. Framework model serialisation re-fetches by identifier, which is…

  • A profile of the queue worker rather than the request

    Months of profiling the web path, and a queue worker consuming three times the CPU that nobody had ever looked at. Profiling follows attention and attention follows user-visible…

  • A consumer that had to be idempotent and finally was

    A handler documented as idempotent since 2022, which was not, and a redelivery that proved it. A docblock claiming idempotency is a claim and not a mechanism, and…

  • A dead letter queue that reached zero

    A dead letter queue that had held between forty and eight thousand messages since 2019, empty for the first time. An empty dead letter queue is not the…

  • An outbox relay with a second instance, partitioned

    A single relay process that had become the throughput ceiling, split into two by partitioning on the aggregate identifier. The modulo on a hash of the aggregate id…

  • Message payloads reduced to identifiers, one year on

    A change made in 2024 to send identifiers rather than snapshots, and what a year of it produced. The lookup cost is trivial when the consumer shares a…

  • Message payloads that had grown to 200 KB

    A message carrying the full order including every line, every address and the customer record, because it was easier than a lookup. Fat messages are defended as avoiding…

  • An outbox relay that stalled and told nobody

    A relay process that died on an unhandled exception and left rows accumulating with no error anywhere. The second alert is the one that mattered: the relay stopped…

  • A job with a unique lock that outlived the job

    A job marked unique so it cannot be queued twice, and a worker killed mid-run leaving the lock held for its full duration. The hour was chosen when…