What are some common timeout patterns used in architecturally resilient systems?

1. Circuit Breaker pattern: This pattern monitors the number of failures in a service and "opens the circuit" when the threshold is reached. This prevents further requests from being sent to the service until it heals.

2. Retry pattern: This pattern retries failed requests for a specified number of times before it gives up. This is useful when the failure is temporary and resolves itself over time.

3. Bulkhead pattern: This pattern partitions a system into isolated sections so that if one section fails it does not bring down the entire system.

4. Timeout pattern: This pattern specifies a maximum time for a request to complete. If the request takes too long to complete, it is considered to have failed.

5. Fallback pattern: This pattern provides a secondary response when a request fails. The secondary response can be a default value or a similar service that can handle the request.

Publication date: