Baker is a library that provides a simple and intuitive way to orchestrate microservice-based process flows.
You declare your orchestration logic as a recipe using the Java, Kotlin, or Scala DSL. A recipe consists of
interactions
(system calls), ingredients
(data), and events
.
Bakers ability to visualize recipes provides a powerful communication tool that helps product owners, architects, and engineers to have a common understanding of the business process. This feature allows you to easily share your recipe with others, enabling collaboration and feedback.
Baker allows for the reuse of common interactions across different recipes, promoting consistency and reducing duplication. With Baker, you can quickly assemble complex process flows by reusing pre-existing building blocks that have been built by other teams within your company.
Use the list below to learn more about Baker:
A recipe is the blueprint of your business process. To create this blueprint you use the Java, Kotlin, or Scala DSL. The examples below demonstrate a recipe for a simple web shop process.
Baker is released to Maven Central. To use Baker you need three modules.
Note If you want to use the Kotlin DSL add
baker-recipe-dsl-kotlin_2.13
instead ofbaker-recipe-dsl_2.13
.
<dependency>
<groupId>com.ing.baker</groupId>
<artifactId>baker-recipe-dsl_2.13</artifactId>
<version>4.1.0</version>
</dependency>
<dependency>
<groupId>com.ing.baker</groupId>
<artifactId>baker-compiler_2.13</artifactId>
<version>4.1.0</version>
</dependency>
<dependency>
<groupId>com.ing.baker</groupId>
<artifactId>baker-runtime_2.13</artifactId>
<version>4.1.0</version>
</dependency>
implementation 'com.ing.baker:baker-recipe-dsl_2.13:4.1.0'
implementation 'com.ing.baker:baker-compiler_2.13:4.1.0'
implementation 'com.ing.baker:baker-runtime_2.13:4.1.0'
Baker gets compiled and released for both 2.13.
libraryDependencies += "com.ing.baker" % "baker-recipe-dsl_2.13" % "4.1.0"
libraryDependencies += "com.ing.baker" % "baker-compiler_2.13" % "4.1.0"
libraryDependencies += "com.ing.baker" % "baker-runtime_2.13" % "4.1.0"
We welcome your contributions! The simplest way to contribute to Baker is by creating a branch from a fork. You can then create a pull request on GitHub from your branch.
To compile and test all libraries:
sbt
> compile
> test
To cross compile all libraries for Scala 2.12 and 2.13:
sbt
> +compile
> +test
To build a single project (baker-akka-runtime, baker-anotations, etc...):
sbt
> projects
sbt
:sbt
> project <PROJECT_NAME>
> compile
> test