remit icon indicating copy to clipboard operation
remit copied to clipboard

Detect if a request cannot be routed and return immediately

Open jpwilliams opened this issue 8 years ago • 2 comments

If a request cannot be routed to a queue, it'd be nice to know as soon as possible. We can use the mandatory message option to have the message returned if that's the case, meaning we can throw an error back to the user that no such endpoint exists.

This does, however, come with a performance hit; it may be pertinent to expose this functionality as an optional extra.

jpwilliams avatar Aug 10 '17 14:08 jpwilliams

Where's the performance hit?

jacktuck avatar Aug 10 '17 14:08 jacktuck

RabbitMQ in the past has published benchmarks where publishing wit mandatory: true has severely impacted performance. There have been blogs/updates since which mention improvements to the speed, though it's my understanding that there's still a small performance hit when using that flag.

jpwilliams avatar Aug 10 '17 15:08 jpwilliams