Abstracting Sharding with Vitess and Distributed Deadlocks
Mike Gershunovsky
911

Hey Mike Gershunovsky, nice article on distributed deadlocks and sharding!. I had a quick question.

Since you break app level transactions into individual shard level transactions, how do you handle rollbacks?

What if the transaction on the shard-2 failed and the one on shard-1 didn’t?

Since the mini-transaction on shard-1 had already committed, how does it rollback?