Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

In this post we are going to explain how can we orchestrate microservices with our BPM Engine based in Camunda.

...

First of all, lets introduce what Saga Pattern is and how it works.

Saga Pattern

Saga is one of the most well-known patterns for distributed transactions.

...

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

BPM Engine as orchestrator

Camunda BPM Engine provides the tools to orchestrate services following the Saga pattern. With compensation events attached to each transaction (task), the engine can listen to them in a centralized way and take compesation measures for rollback.

...

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

Links

https://unpocodejava.com/2020/01/02/que-es-el-patron-saga/

More info at: https://blog.couchbase.com/saga-pattern-implement-business-transactions-using-microservices-part-2/

...