queues

  • A licence change, and the fork we did not take

    20 March, a licence change, and a fork announced within a week. A dependency that is no longer open source, in production, everywhere.

  • A consumer group rebalance during a deploy

    Every deploy restarting six consumers at once, triggering a rebalance that stops consumption for forty seconds. Rolling the restarts is the obvious answer and it is slower, which…

  • The service we merged back

    Two services extracted in 2021, a team of four maintaining four pipelines, and forty-one of forty-four releases touching both.

  • A retry policy copied from a tutorial in 2019

    Three attempts, one second apart, applied to every consumer regardless of what it does. One retry policy across four consumers means three of them are wrong, and the…

  • A consumer that stopped on a poison message, on purpose

    A message that cannot be processed and must not be skipped, in a stream where order matters. Halting is the right answer when skipping would corrupt the state…

  • Quorum queues, and the mirroring we removed

    Classic mirrored queues have been the deprecated way to get replication for a while, and the replacement has different failure behaviour worth understanding first. The throughput cost is…

  • An outbox, and the publisher we removed from the transaction

    An order committed and an event never published, twice in one week. A broker call inside a database transaction, and a rollback after it.

  • Testing a queue by asserting the payload, not the effect

    A test that dispatched a job and then asserted on the database is testing two things and failing for two reasons. Splitting at the queue boundary is the…

  • A saga in a table, because the alternative was a framework

    A three-step process across two external systems, needing compensation when step two fails, and no appetite for a workflow engine. A state machine in a table, advanced by…

  • An event log that is not an event store

    Wanting to know what happened to an order without adopting event sourcing. A support question that takes twenty minutes and three tables.