This paper proposes a formal approach to the design and programming of Long Running Transactions (LRT). We exploit techniques from process calculi to define cJoin, which is an extension of the join calculus with few well-disciplined primitives for LRT. Transactions in cJoin are intended to describe the transactional interaction of several partners, under the assumption that any partner executing a transaction may communicate only with other transactional partners. In such case, the transactions run by any party are bound to achieve the same outcome (i.e., all succeed or all fail). Hence, a distinguishing feature of cJoin, called dynamic joinability, is that ongoing transactions can be merged to complete their tasks and when this happens either all succeed or all abort. Additionally, cJoin is based on compensations, i.e., partial executions of transactions are recovered by executing user-defined programs instead of providing automatic roll-back. The expressiveness and generality of cJoin is demonstrated by many examples addressing common programming patterns. The mathematical foundation is accompanied by a prototype language implementation, which is an extension of the jocaml compiler.
|Autori interni:||BRUNI, ROBERTO|
MONTANARI, UGO GIOVANNI ERASMO
|Autori:||BRUNI R; MELGRATTI H; MONTANARI U|
|Titolo:||cJoin: join with communicating transactions|
|Anno del prodotto:||2014|
|Digital Object Identifier (DOI):||10.1017/S0960129512000928|
|Appare nelle tipologie:||1.1 Articolo in rivista|