April 2018
Intermediate to advanced
300 pages
7h 41m
English
Timeout is a proactive policy, which is applicable in scenarios where the target service takes a long time to respond, and rather than letting the client wait for a response, we return a general message or response. We can use the same Polly framework to define the timeout policy, and it can also be used with the combination of retry and circuit breaker patterns we learned earlier:

In the preceding diagram, the user registration service is calling the email service to send emails. Now, if the email service does not respond in a particular amount of time, as specified in the timeout policy, the timeout exception will be ...