Package io. github. nomisrev
Types
Saga
Link copied to clipboard
class Saga<A>(action: suspend SagaEffect.() -> A, compensation: suspend (A) -> Unit)
Content copied to clipboard
The saga design pattern is a way to manage data consistency across microservices in distributed transaction scenarios. A Saga is useful when you need to manage data in a consistent manner across services in distributed transaction scenarios. Or when you need to compose multiple actions
with a compensation
that needs to run in a transaction like style.
Saga Effect
Link copied to clipboard
Receiver DSL of the saga { }
builder.
Functions
saga
Link copied to clipboard
The Saga builder which exposes the SagaEffect.bind. The saga
builder uses the suspension system to run actions, and automatically register their compensating actions.