sawtooth-core icon indicating copy to clipboard operation
sawtooth-core copied to clipboard

Is batch in sawtooth same as in traditional 2 phase commit

Open GOVYANSONG opened this issue 1 year ago • 1 comments

Newbie here, please be patient with my question :). I was reading about 2 pc in oracle blockchain platform and wondering if sawtooth batch achieves the same. Also, can a sawtooth batch across multiple sawtooth instances (chains) e.g. distributed transaction across multiple sawtooth chains.

Thanks,

GOVYANSONG avatar Sep 21 '23 17:09 GOVYANSONG

On Thu, Sep 21, 2023 at 12:04 PM GOVYANSONG @.***> wrote:

Newbie here, please be patient with my question :). I was reading about 2 pc in oracle blockchain platform and wondering if sawtooth batch achieves the same. Also, can a sawtooth batch across multiple sawtooth instances (chains) e.g. distributed transaction across multiple sawtooth chains.

A batch contains multiple transactions, with the batch being the atomic structure. It allows you to submit multiple transactions with assurance that they will be all committed or none committed. This is independent of the consensus mechanism used. There is no distributed transaction capability as that would belong a layer higher (the application layer).

-Shawn

Message ID: @.***>

vaporos avatar Sep 23 '23 00:09 vaporos