What is a transaction?
A group of operations that need to be applied together in an indivisible manner (all or none).
What is a distributed transaction?
Like a regular transaction but the state that needs to be updated resides on multiple nodes.
A leader ensures correctness across participants of a distributed transaction and across multiple distributed transactions.