Resonate Saga Pattern Java

Implement saga patterns for distributed transactions in Java with Resonate — forward steps wrapped in a try/catch, each tracked in a List, with compensating actions that unwind in reverse on failure. Uses an enum + switch for compensation dispatch and the retry policy (Retry.Never / bounded Exponential) to control which steps retry, since the Java SDK has no non-retryable error wrapper. Use when coordinating multi-step Java workflows that need consistency across failures without a distributed transaction. Verified against develop/java.mdx (docs PR

resonatehq cde0f86 11.8 KB Updated

File contents

resonatehq/resonate-skills/tree/main/resonate-saga-pattern-java commit cde0f861f4

Frequently asked questions

npx skillmds@latest add resonatehq/resonate-saga-pattern-java