In this chapter, we looked at the various ways to add resilience to our application. First, we covered possible error scenarios involving the producer and the subscriber. Next, we looked at how Reactor performs error handling under each of those conditions. This enabled us to configure the required error handling in Reactor, by using the various operations that are offered. Reactor allows us to configure fallback values for the thrown exceptions by using onErrorReturn and onErrorResume operators. We also configured timeouts and retry machines, using the available operators, in order to generate timely responses. Finally, we configured error handling in WebClient. In a nutshell, we explored the possible ways to configure error handlers in Reactor.
Germany
Slovakia
Canada
Brazil
Singapore
Hungary
Philippines
Mexico
Thailand
Ukraine
Luxembourg
Estonia
Lithuania
Norway
Chile
United States
Great Britain
India
Spain
South Korea
Ecuador
Colombia
Taiwan
Switzerland
Indonesia
Cyprus
Denmark
Finland
Poland
Malta
Czechia
New Zealand
Austria
Turkey
France
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Malaysia
South Africa
Netherlands
Bulgaria
Latvia
Australia
Japan
Russia