A Saga is an immutable structure that models a distributed transaction.
A Saga is an immutable structure that models a distributed transaction.
See also
Saga pattern
Saga class has three type parameters - R for environment, E for errors and A for successful result.
Saga wraps a ZIO that carries the compensating action in both error and result channels and enables a composition
with another Sagas in for-comprehensions.
If error occurs Saga will execute compensating actions starting from action that corresponds to failed request
till the first already completed request.
A Saga is an immutable structure that models a distributed transaction.
Saga pattern Saga class has three type parameters - R for environment, E for errors and A for successful result. Saga wraps a ZIO that carries the compensating action in both error and result channels and enables a composition with another Sagas in for-comprehensions. If error occurs Saga will execute compensating actions starting from action that corresponds to failed request till the first already completed request.