16 releases
new 0.2.41-beta.18 | Oct 30, 2024 |
---|---|
0.2.41-beta.14 | Jul 2, 2024 |
0.2.41-beta.11 | Feb 24, 2024 |
0.2.41-beta.8 | Dec 12, 2023 |
0.2.41-beta.4 | Jul 22, 2023 |
#306 in Asynchronous
41 downloads per month
Used in 6 crates
(2 directly)
11KB
197 lines
A service combinator that sends requests to a first service, then retries processing on a second fallback service if the first service errors.
Fallback designs have a number of downsides but may be useful
in some cases. For instance, when using batch verification, the Fallback
wrapper can be used to fall back to individual verification of each item when
a batch fails to verify.
TODO: compare with similar code in linkerd.
Dependencies
~1–1.6MB
~29K SLoC