It has been revealed that resilience4cata 1.1.1 is on Maven Central. Together with 1.1.0, it brings nine fixes since 1.0.0. All of them are compatible: the API, the generated code and the configuration keys are unchanged, so upgrading is a version bump.

If you haven't seen it before: resilience4cata gives you retry, circuit breaker, rate limiter, timeout, bulkhead, fallback, hedging and an adaptive concurrency limit for Java 21+. You write them as annotations, and an annotation processor turns them into plain Java at compile time, with no proxies, aspects or agents. (Related: Tiny Agents: an MCP-powered agent in 50 lines of code...)

Recent findings suggest that some of these bugs were found by going through Resilience4j's test suite and checking the same cases here. Here is what changed, grouped by where you would have noticed it.

The first one is the only change of behaviour in these releases. If your breaker thresholds were tuned around streams that were never recorded, it may now see more successes than before. The Flux section of the Reactor guide describes the rule. (Related: Accelerate ND-Parallel: A guide to Efficient Multi-GPU ...)

Industry observers note that synchronous timeouts are driven by a watchdog thread that sleeps in short steps and keeps a coarse clock. That clock moved forward by at most one tick per wake-up. On machines where a short sleep always lasts longer than asked, it fell behind real time, and every sync timeout with it. On GitHub's macOS VMs, a sleep of 0.75 ms took about 4 ms, and a 200 ms timeout fired after 760 ms. The weekly build on Windows and macOS caught it.

Now the clock's step follows how long the watchdog actually slept, so it keeps up with real time, and a timeout still never fires early. On a machine that wakes up on time, nothing changes. See the Timeout policy.

Industry observers note that nobody configures a 292-year timeout on purpose. But a value like that can come from a computation or a misread property, and the error should say which attribute is wrong.

This one stopped applications from starting. The Micronaut guide highlighted:.

According to recent reports, YAML reads an unquoted off as the boolean false, so the integration received "false" and rejected it with R4C-MN-006. Now false means off. The valid values are fail, warn and off, so an unquoted on (read as true) is still rejected, now with a hint to quote the value.

Every 1.x release has to keep the compatibility promise, and CI checks it on every change:.

Sources indicate that with the BOM, change its version to 1.1.1. For Maven, see the installation page. The full list is in the changelog.

If you are fresh to the library, the quickstart takes about five minutes. If you use Resilience4j today, start with the migration guide.

If something surprised you, or an error message didn't tell you what to do, please open an matter.

The code is Apache-2.0 on GitHub.

→ Read original article