3

What is the difference between Transaction Co-ordinator and Transaction Manager in context of Distributed Database Management System?I tried finding it on Internet and the only information I got is that the Transaction manager manages(how?) transactions on the local sites while transaction coordinator manages(again how?) transactions at global level.Are they separate entities or the names are used interchangebly?Thanking you in anticipation

Pranay Binju
  • 591
  • 1
  • 6
  • 14

1 Answers1

3

In the context of distributed databases, a transaction coordinator as the name implies co-ordinates the overall execution of the transaction by issuing transactional messages to other nodes of the distributed system. On each of the nodes a transaction manager can locally execute operations as part of the transaction. A coordinator typically acts as a proxy to receive transactional operations from a client and is therefore aware of the order of operations and is responsible for the overall result of the transaction, while the individual managers may typically be responsible for managing the life of the transaction within the individual nodes. Depending on the semantics of the transaction implementation (single phase/two phase/etc), the coordinator and the transaction managers can communicate with each other information about transactional states, actual data or control messages for prepare/commit/etc or failure conditions such as inability to take locks or conflicts with other transactions, etc.

Hope this helps.

  • 1
    Is there only one co-ordinator for all the sites participating in the transaction or only one co-ordinator for all the sites in the network?If there is only one co-ordinator for all the sites participating in the transaction, does it originate from the site initiating the transaction?Thank you – Pranay Binju Apr 30 '15 at 09:09
  • 1
    Not sure what you mean by "sites participating in a transaction". The term site is usually used for a cluster of nodes constituting a distributed system, and a transaction's boundary is usually limited to a site, not beyond it. Can you clarify your question? – Sunil Jigyasu Apr 30 '15 at 18:00
  • 1
    Suppose there are 10 sites in a distributed system.So there will be only 1 Transaction Coordinator and 10 Transaction Managers,isn't it?? – Pranay Binju May 04 '15 at 05:02
  • 1
    Yes, that can be so, provided by sites you mean member nodes of the distributed system. – Sunil Jigyasu May 04 '15 at 08:47