OxL Reference

bank-saga

A money transfer as a saga (Standard §11.3): debit the source, credit the target; when the credit fails the debit is compensated. Accounts are sharded actors, Bank is a service whose methods are @idempotent (every saga step gets an idempotency key). oxl run makes two transfers, oxl test checks the happy path and the compensation.

Project files#

Download the project (zip)

Source: examples/bank-saga

OxL 1.0.0-beta · Documentation version 1.0.0-beta© OxwaldLink · generated from the Standard, the std sources and the guides