Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Events/Choreography: When there is no central coordination, each service produces and listen to other service’s events and decides if an action should be taken or not.

...

  • Command/Orchestration: when a coordinator service is responsible for centralizing the saga’s decision making and sequencing business logic.

In this post we will take care of the second approach, as it is the most scalable, simple to understand, and consistent one.

...

Furthermore, compensation actions are taken in cascade, this means that if “book hotel” fails, then Cancel Car “cancel car” is executed. If “book flight” fails, then Cancel hotel and Cancel car “cancel hotel” and “cancel car” actions are executed.

So, how are failures/erros handled in Camunda?

...

If we start this business process, we you can see in the console the logs for the tasks that are being executed:

...