
上QQ阅读APP看书,第一时间看更新
Proactive policies
According to the proactive policy, we should proactively respond to a request if it is leading towards a failure. We can use techniques such as timeout, caching, and health checks to proactively monitor application performance, and use them to proactively respond in the event of failure.
- Timeout: If a request takes more than the usual time, it ends the request
- Caching: Caches previous responses and uses them for future requests
- Health checks: Monitor the application's performance and invokes alerts in the event of failure