Are there any “Formal examples” on how to implement the circuit breaker pattern along with the NServiceBus retry mechanisms? The problem i’m trying to solve is that when we receive a message at our nservicebus endpoint to call a web api if the web api is down or slow the configured timeout for the web api call + immediate and delayed retries mechanism in nservicebus essentially cause the nservicebus endpoint to have all threads stuck trying to process messages that call the API and cause the queue to backup or get “clogged”. Based on my knowledge of distributed computing what we need to do is fail fast so the nservicebus host doesn’t waste all threads ( which pull from it’s queue ) on a web api call that clearly isn’t resolving anytime soon. This means implementing the circuit breaker pattern!
Unfortunately i haven’t found any useful examples or advice on how to do this with nservicebus. Are there any examples available that show how to do this?