davsclaus opened a new pull request, #80:
URL: https://github.com/apache/camel-jbang-examples/pull/80

   Rung 4 of the ladder from CAMEL-24808: failing well.
   
   Two examples under `fail-well/`:
   
   - `error-handling` (new): the three web shop orders go to a payment provider 
route. A `deadLetterChannel` error handler retries with two redeliveries a 
second apart, logged at WARN; ORD-1002 gets no answer twice and is charged on 
the third attempt. An `onException` for the declined card (ORD-1003) parks the 
order at once, as a file under `parked/`, without retries. The provider route 
uses `noErrorHandler` so its failures reach the caller and the whole call is 
retried, as with a remote service.
   - `circuit-breaker` (rewritten, moved from `eip/`): a stock check calls the 
supplier every second; the supplier is down for calls 4 to 12. With a sliding 
window of four and a 50% threshold the breaker opens on check 5, answers from 
`onFallback` while open, tries the supplier again after five seconds, and 
closes on check 15. Every line logs `CamelCircuitBreakerState`, so the CLOSED, 
OPEN, CLOSED sequence is visible in the log.
   
   Each has a README in the ladder shape, `metadata.json` with `teaches`, a 
Citrus YAML test run with `camel test run`, and a CI matrix entry. Both tests 
pass locally. `parked/` is gitignored. Catalog regenerated (36 examples).
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   https://claude.ai/code/session_01Bp3538HRBPMQkb5ta9xRaj


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to