# yugabyteDB's master, role in distributed transactions

**URL:** <https://forum.yugabyte.com/t/yugabytedbs-master-role-in-distributed-transactions/2698>\
**Category:** General\
**Created:** [June 18, 2024, 9:56am UTC](https://forum.yugabyte.com/t/yugabytedbs-master-role-in-distributed-transactions/2698 "2024-06-18T09:56:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZhenNan2016](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/zhennan2016/32/623_2.png) [@ZhenNan2016](https://forum.yugabyte.com/u/ZhenNan2016)\
**Post date:** [June 18, 2024, 9:56am UTC](https://forum.yugabyte.com/t/yugabytedbs-master-role-in-distributed-transactions/2698/1 "2024-06-18T09:56:37Z")

</div>

Hi  
Do we need master control for distributed transactions in yugabyteDB? For example, the state synchronization of sub-transactions performed by each tserver, does it need to be synchronized to the client via master?  
From the following document: [Transactional I/O path | YugabyteDB Docs](https://docs.yugabyte.com/preview/architecture/transactions/transactional-io-path/)  
It seems that no master intervention is required.

---

<div class="post-metadata">

**Author:** ![FranckPachot](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/franckpachot/32/353_2.png) [@FranckPachot](https://forum.yugabyte.com/u/FranckPachot)\
**Post date:** [June 18, 2024, 10:06am UTC](https://forum.yugabyte.com/t/yugabytedbs-master-role-in-distributed-transactions/2698/2 "2024-06-18T10:06:43Z")

</div>

That’s right. Regular DML do not need the master.  
It is used for new connection and for DDL, as it holds the catalog, but transaction have their tables distributed in the tservers

---

<div class="post-metadata">

**Author:** ![ZhenNan2016](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/zhennan2016/32/623_2.png) [@ZhenNan2016](https://forum.yugabyte.com/u/ZhenNan2016)\
**Post date:** [June 18, 2024, 10:12am UTC](https://forum.yugabyte.com/t/yugabytedbs-master-role-in-distributed-transactions/2698/3 "2024-06-18T10:12:33Z")

</div>

Thank you very much.  
When I ask a question on the kimi platform, the intelligent answer is as follows, that should be wrong:  
Thus, the Master component does play an important role in distributed transactions, especially in the tracking and management of transaction state. However, the specific transaction commit and orchestration processes, including two-phase commit (2PC) of transactions, etc., are handled by other components and mechanisms to ensure atomicity and consistency of transactions.

---

<div class="post-metadata">

**Author:** ![ZhenNan2016](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/zhennan2016/32/623_2.png) [@ZhenNan2016](https://forum.yugabyte.com/u/ZhenNan2016)\
**Post date:** [June 18, 2024, 10:20am UTC](https://forum.yugabyte.com/t/yugabytedbs-master-role-in-distributed-transactions/2698/4 "2024-06-18T10:20:57Z")

</div>

> [@FranckPachot](#):
>
> new connection

By the way, the new connection here, which connections does it refer to? rpc connection? Do connections have anything to do with transactions as well?

---

<div class="post-metadata">

**Author:** ![FranckPachot](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/franckpachot/32/353_2.png) [@FranckPachot](https://forum.yugabyte.com/u/FranckPachot)\
**Post date:** [June 18, 2024, 10:34am UTC](https://forum.yugabyte.com/t/yugabytedbs-master-role-in-distributed-transactions/2698/5 "2024-06-18T10:34:32Z")

</div>

> [@ZhenNan2016](#):
>
> have anything to do with transactions

SQL connections. It’s the PostgreSQL catalog that is on the master

---

<div class="post-metadata">

**Author:** ![ZhenNan2016](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/zhennan2016/32/623_2.png) [@ZhenNan2016](https://forum.yugabyte.com/u/ZhenNan2016)\
**Post date:** [June 18, 2024, 11:36am UTC](https://forum.yugabyte.com/t/yugabytedbs-master-role-in-distributed-transactions/2698/6 "2024-06-18T11:36:12Z")

</div>

> [@FranckPachot](#):
>
> SQL connections. It’s the PostgreSQL catalog that is on the master

okay, I got it now.  
Thanks a lot.
