▪ Timeout Pattern provides that should not wait for a service
response for an indefinite amount of time, throw an exception
instead of waiting too long.
▪ It is used to handle scenarios where a service call takes longer
than expected to complete.
▪ Setting a maximum time limit for the service call to complete, if
the time limit is exceeded, the call is considered to have «timed
out.»
▪ In microservices, It used to prevent service calls from taking
too long to complete.
▪ If the payment processing service takes longer than expected
to complete a request, the timeout pattern used to cancel the
request and return an error to the shopping cart service