- How is an error handled in Reactor?
Errors arise when either the publisher or the subscriber throws back an exception. Reactor intercepts the exception, builds an Error event, and then sends it to the subscriber. The subscriber must implement ErrorCallbackHandler to handle the error.
- Which operators allow us to configure error handling?
- onErrorReturn
- onErrorResume
- onErrorMap
- What is the difference between onErrorResume and onErrorReturn?
The OnErrorReturn operator provides a fall-back value in the event of an error. On the other hand, the OnErrorResume operator provides a fall-back value stream instead of a single fall-back value.
- How can we generate a timely response for a Reactive Streams?
The timeout() operator can be configured for a time interval. The operator will raise an error when it first discovers a delay of more than the configured...