Cooperation with safely #9
-
Hello 👋 I haven't used this project but it looks great. While reading the readme, I wondered what you would think about using salutem in conjunction with |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @piotr-yuxuan, Thanks for the pointer to Currently, I am undecided as to whether The circuit breaker pattern is more important when trying to prevent a "cascading failure" where a large and ever growing volume of requests become blocked right the way back up through a call tree potentially involving and potentially overloading many components. In the case of I do however incorporate timeouts into all of the check functions I write, since even with the tight control over the number of requests produced by How were you thinking Thanks, |
Beta Was this translation helpful? Give feedback.
-
I think we could use it inside a check-fn with (fn [context callback-fn]
(safely
;; IO call goes here, for example `http/get`.
:on-error
:max-retries 5
:circuit-breaker :external-service)) Then, elsewhere in code we can reuse this circuit breaker: (safely
;; IO call goes here, for example `http/get`.
:on-error
:max-retries 5
:circuit-breaker :external-service) |
Beta Was this translation helpful? Give feedback.
I think we could use it inside a check-fn with
:salutem/time-to-re-evaluation
:Then, elsewhere in code we can reuse this circuit breaker: