Timeout Pattern

Problem

A client wants to connect a network resource which is unfortunately not available at that time and client is keep waiting for a response.

Solution

Using Timeout pattern, a client service or application can set the max waiting time in the form of timeout when connecting to a network resource.
If client is unable to establish connection or getting response within the given timeout period than it can be considered as failure and client doesn’t need to wait for the response forever.
Please share this

Leave a Reply