April 2018
Intermediate to advanced
300 pages
7h 41m
English
The retry pattern is used to retry the faulted service a number of times in order to get a response. It is widely used in scenarios involving intercommunication between services, where one service is dependent on another service to perform a particular operation. Transient faults occur when services are hosted separately and communicate over the wire, most likely over a HTTP protocol.
The following diagram represents two services: a user registration service that registers and save the user's record in a database, and an email service to send a confirmation email to the user so that they can activate their account. Suppose an email service does not respond. This will return some sort of error, and if a retry ...