I found conflicting information in this doc: Critical Errors • NServiceBus • Particular Docs
Under “Default Behavior” section is says
“The default behavior is to log the exception and keep retrying indefinitely.”
Then under “When to override the default critical error action” section, it also says
“The default action should always be overridden when self-hosting NServiceBus, as by default when a critical error occurs the endpoint will stop without exiting the process.”
My goal is that I don’t want my endpoints (hosted in web apps) be stopped by critical errors. Because my transport may eventually back online and I want my endpoints to continue to send messages without having to restart them.
I did a quick test - shutting down RabbitMQ then turning it back on. Without overriding the critical errors, my endpoints were able to send message again - I saw the circuit breaker “is not disarmed” in the log. So I don’t have to override it then?
Thanks!