On Fallback

If you are using onFallback then that is intended to be local processing only where you can do a message transformation or call a bean or something as the fallback.

If you need to call an external service over the network then you should use onFallbackViaNetwork that runs in another independent HystrixCommand that uses its own thread pool to not exhaust the first command.

Options

The On Fallback eip supports 1 options, which are listed below.

Name Description Default Type

fallbackViaNetwork

Whether the fallback goes over the network. If the fallback will go over the network it is another possible point of failure. It is important to execute the fallback command on a separate thread-pool, otherwise if the main command were to become latent and fill the thread-pool this would prevent the fallback from running if the two commands share the same pool.

false

Boolean

description

Sets the description of this node.

DescriptionDefinition

Using fallback

The onFallback is used by Circuit Breaker EIPs to execute a fallback route. For examples how to use this see the various Circuit Breaker implementations: