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

   Closes #146
   
   A new example on the `route` rung: the scatter-gather pattern with the shop 
story. For each restock request the shop asks three suppliers for a quote at 
the same time, waits at most two seconds, and picks the lowest price, with the 
shorter delivery time on the same price.
   
   - `multicast` with `parallelProcessing: true`, `timeout` and 
`GroupedBodyAggregationStrategy`: supplier B answers after 3 seconds and is 
left out.
   - A failing supplier (C answers 404 for hoodies) is caught with `doTry` in 
the branch, logged, and skipped.
   - Groovy picks the best quote (`min` with a comparator on price, then 
delivery days).
   - The suppliers are `platform-http` routes in `suppliers.camel.yaml`, so no 
other service is needed.
   
   Checked locally: `camel validate yaml --canonical` reports nothing, `camel 
run *` logs what the README shows, and `camel test run` passes with Camel 
4.23.0 (the version CI uses). The test is added to `build.yml`, and 
`./generate-catalog.sh` updated the catalog and the README tables.
   
   _Claude Code on behalf of davsclaus_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   https://claude.ai/code/session_016Y4dDi5iQNgtHrDdz2NpwF


-- 
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