⚠ Switch to EXCALIDRAW VIEW in the MORE OPTIONS menu of this document. ⚠ You can decompress Drawing data with the command palette: ‘Decompress current Excalidraw file’. For more info check in plugin settings under ‘Saving’

Excalidraw Data

Text Elements

application server

cordinator node

data partition 1

data parition 2

1

1’

call reserve(new update)

reserve will check if corresponding node can take this latest update. Here reserve from node 2 returned error or false. commit will not be proceeded for both the node and node 1 lock will be rolled backed to make it available for other update

yes

no due to write conflict or no space

lock applied on the row

application server

cordinator node

data parition 2

1

1’

call reserve(new update)

yes

lock1

yes

lock 2

data parititon 1

both the reserve is yes, so it will go and commit txn on both the nodes.

SAGA Algorithms

Orchestrator pattern

order service

notification

seller

logistics

/reserve delivery agent

/ship

/notify

all control is with OS

place order

order service will ensure all the steps to be success with retry or give rollback command if txn not be completed at any step

Choreographer pattern

order service

seller

logistic service

notifiy

kafka

broker