alibaba / sentinel-golang

Sentinel Go enables reliability and resiliency for Go microservices
https://sentinelguard.io/
Apache License 2.0
2.76k stars 432 forks source link

Question for the circuit breaker rule struct: why do we need RetryTimeoutMs? #477

Open Hyakkiyakou opened 2 years ago

Hyakkiyakou commented 2 years ago

Why set the RetryTimeoutMs phase? Why should wait the RetryTimeoutMs rather than detect directly?

why444216978 commented 2 years ago

When the service breaks down, it is generally necessary to intercept the traffic and leave time for the service to recover automatically. If detect directly, the service recovery may fail.

sczyh30 commented 2 years ago

Hi, you may refer to the canonical circuit breaker pattern.