queues

  • IHostedService is the background worker you would have written

    A long-running process alongside the web application — a queue consumer, a scheduler — is a first-class concept here rather than a separate supervisor configuration. The cancellation token…

  • Redis streams keep the message; a list does not

    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…

  • The failure transport, and retrying from the command line

    A message that fails its retries has to go somewhere, and a dedicated transport plus two commands is a dead letter queue with an operator interface. Being able…

  • A dead letter queue nobody watches is a bin

    Routing failed messages somewhere they cannot block the main queue is the correct design, and it converts a loud failure into a silent one unless something alerts on…

  • Redis streams, and the broker you might not need

    5.0 shipped in October with a log-structured type and consumer groups. A list has no acknowledgement, which is why a crashed consumer loses the message.

  • SKIP LOCKED is why a queue table is suddenly viable

    Two workers selecting the next unprocessed row with FOR UPDATE serialise — the second waits for the first — so adding workers adds no throughput at all. SKIP…

  • Seven services in one development environment

    Apache, Nginx, PHP, MySQL, Redis, Beanstalkd and a mail catcher, on a laptop. Onboarding measured in minutes rather than days, and what it costs to run.

  • Beanstalkd in a container is four lines

    Beanstalkd is a queue and nothing else — no persistence by default, no clustering, no management UI — which makes it about the smallest thing that is genuinely…

  • Beanstalkd reserve, delete and bury in three sentences

    Beanstalkd models a job’s lifecycle explicitly, and the three verbs are the whole API worth knowing. A reserved job returns to the ready queue automatically when its time-to-run…

  • Consumer groups, and the pending entries list

    Reading a stream directly gives every consumer every message. A consumer group distributes entries between members and remembers which ones were handed out and not acknowledged. The pending…