Been working on a library to solve a problem I kep...
# feed
d
Been working on a library to solve a problem I kept hitting: orchestrating multiple parallel coroutine calls with sequential phases in between. The async/await ceremony gets messy fast when you have 5+ services with dependencies between them. KAP lets you write the execution plan as a flat chain
.with
for parallel,
.then
for barriers,
.andThen
when the next phase needs the previous result. The compiler checks argument order. Still early (v2.5.0), but it has 900+ tests and is on Maven Central. Multiplatform (JVM, JS, WASM, Native). https://github.com/damian-rafael-lattenero/kap Genuinely looking for feedback especially from anyone doing BFF layers, checkout flows, or dashboard aggregation. What am I missing? What feels off? Happy to hear the hard truths
a
The biggest issue I have with multi service orchestration is the sad path handling. If one external services fails…. What then?
d
Fair point really, I have a partial failure approach in the documentation: https://damian-rafael-lattenero.github.io/kap/modules/kap-core/#partial-failure the idea is to wrap into Result<T> de result of the execution of the coroutine so it doesn't fail fast and the siblings can continue. Is that what you were referring to?
a
Among others. But also retry strategies etc.
j
Hey Damian, the name of your project looks very similar to KAPT (Kotlin Annotation Processing Tool)
✅ 1
d
roger, maybe will rename soon thanks!
👍🏻 1