Mosaic: A Kotlin Framework for Decoupling BFF API Orchestration Logic
The article introduces Mosaic, a new Kotlin framework built to manage business logic in complex backend-for-frontend orchestration APIs. Developers write small, composable "tiles" that run in parallel, avoid duplicate calls, and declare dependencies on one another. Mosaic assembles a request tree dynamically for each request, aiming to replace sprawling conditional logic with testable, decoupled components. It is positioned as a complement to existing web frameworks such as Ktor, Micronaut, and Spring rather than a replacement. The authors point to examples and a quick start guide for developers looking to adopt it.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in