Skip to content

As dead letter exchanges go, is it better to use the default exchange or one per dead letter queue #14239

Discussion options

You must be logged in to vote

The default exchange is the fastest exchange - there's no need to lookup anything, since the routing key is the name of the destination queue. If that's sufficient for you, it should be the simplest and fastest at the same time.
Direct exchanges are very fast in general though, so if your point of reference is a non-default direct exchange, you can see a difference in the benchmarks, but probably not in real life.

An exchange per queue is just unnecessary. A handful of exchanges should do no harm, but lots of exchanges may for example slow down a node startup.

As usual with performance questions, I'd highly recommend running some simple test yourself. You will almost certainly learn some …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@craigedmunds
Comment options

@mkuratczyk
Comment options

@ansd
Comment options

ansd Jul 16, 2025
Maintainer

Answer selected by victorarbuesmallada
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants