hi, I would like to thank everyone who contributed to the .net sdk. What I want to know is, is there SAGA support in the current prerelease?
Only Java has a saga helper, which can be seen here. Note how simple it is. It just collects compensations and runs them on errors which you can also easily do. In other languages, we recommend just using try/catch/finally as normal to run cleanup code.
For some details on how the saga pattern applies to Temporal, see these two blog posts:
The same principles apply to .NET. Temporal workflows are mostly just normal code, so use try
and catch
with cleanup code as you would without Temporal. I have opened this issue to track getting a sample added.