https://github.com/NPDeehan
Implement the saga pattern in Camunda

Implement the saga pattern in Camunda

In an event-based, distributed architecture, you can't relay on rollbacks to undo actions that have been taken. Instead, you have to actively trigger compensations. This solution is detailed conceptually as the saga pattern. This blueprint demonstrates how to use the BPMN compensation event to implement the saga pattern in a business process that is orchestrated by Camunda. The blueprint also takes advantage of Camunda Connectors for communication via Slack and email. In this example, you can register to adopt a hawk. Communication with the applicant is done via Slack and email, or only email if the person doesn't have a Slack account. If the applicant is rejected, the process throws a compensation event that notifies the applicant that they will not receive a hawk.


Features and Benefits

Leverage BPMN to Undo Actions

BPMN is an ideal tool for rolling back actions that have been taken during execution of a business process, even in a distributed architecture. Instead of hand-coding rollback logic across multiple microservices, the BPMN compensation event can automatically undo previous tasks.

Multi-Channel Communication

This blueprint demonstrates how to communicate through multiple channels and accommodates situations where a person cannot be contacted through more than one channel. The example can be extended to other methods of communication; for example, sending an SMS to a phone number.

Details

  • Marketplace release date -
  • Last Github commit -
  • Associated Product Group Categories:
    • Solutions
  • Version Compatibility:
  • Used Connectors: 418732,418734

Support and documentation
Creator