O'Reilly logo

Reactive Programming With Java 9 by Tejaswini Mandar Jog

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Dual-mode fallback

Sometimes, some applications implement primary and secondary as dual-mode behavior. In this scenario, we have a main HystrixCommand working as a facade that will facilitate the flipping between the primary or secondary systems. The facade command will hide the implementation of the primary and secondary command, and take the responsibility of implementing the logic that will decide whether to invoke a primary command or secondary command. In case of the failure of both primary and secondary commands, the control will switch back to the facade command.

Both the primary as well as the secondary implementation of the HystrixCommand are thread safe, as they are involved in performing the business logic and network traffic. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required