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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.