RabbitMQ with NestJS, for Spring Developers: 19,000 Redeliveries

1 October 2026 nestjstypescriptnodejsjavaspring-bootrabbitmq
PDF The design sheet The full architecture and the verified references. Free, no email.
Thumbnail for RabbitMQ with NestJS, for Spring Developers: 19,000 Redeliveries 4:24
Watch on YouTube, or read on below.
Run this yourself → Clone the repo, docker compose up, and watch it happen

One payment that can never be settled, sent to a queue. Spring Boot’s listener container, with its defaults, redelivered it over 19,000 times in ten seconds, and it was still in the queue. NestJS, with its defaults, delivered it once, and the queue was empty afterwards. Measured on 1 October 2026 against RabbitMQ 4.1 with real processes.

Acknowledgement is the contract

Spring’s container rejects a message whose listener throws and asks for a requeue by default: a Spring default, not RabbitMQ’s. Nest’s RabbitMQ consumer defaults to noAck: true, so RabbitMQ had already been told no acknowledgement was needed, and had nothing to redeliver.

Acknowledge yourself, and decide where failures go

With noAck: false and channel.ack after success, the failing message stayed unacknowledged and came back after a restart. With a dead letter queue, and requeue off in Spring or a nack without requeue in Nest, both stacks tried it once and parked it.

The envelope

Nest publishes { "pattern": ..., "data": ... }; Spring’s JSON converter publishes the bare object with a __TypeId__ header. Spring read Nest’s message; Nest found no pattern in Spring’s and dropped it. Agree the envelope before two stacks share a queue.

The full code for every measurement is in the repository, and the free design sheet above has the checklist on one page.


Watch next

New videos land on Code with Sam - subscribe there if this was useful.

Get the interview pack

A free, practical pack for engineers preparing for senior backend interviews - the questions that actually get asked, and how to answer them like someone who has done the work.

New articles and videos when they land. No spam, and one click to leave.