In this chapter, we will learn how Orleans supports transactions across grains. This allows us to update the state of multiple grains in one atomic operation to avoid scenarios where failure can lead to inconsistent state across grains.
Motivation for Transactions
Transactions are useful when a system has distributed state that is co-dependent. Using payments as an example, if the amount was deducted from one account but not credited to the second, perhaps due to a transient fault, we would see an inconsistent state and ...