Handling Errors

Resilience is an important aspect of reactive systems. As per the Reactive Manifesto, a reactive system must remain responsive during failure. The system must handle errors gracefully, and generate a user response in a timely manner. This cannot be accomplished without an effective error handling mechanism. Reactor offers a number of operators to handle errors. In this chapter, we will look at each of them.

In this chapter, we will cover the following topics:

  • Handling errors
  • Error operators
  • Timeout and retry
  • WebClient error handling

Get Hands-On Reactive Programming with Reactor now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.