Described herein is a system for executing distributed transactions. A
participant and a coordinator cooperate to execute a distributed
transaction, the distributed transaction including a transaction executed
by the participant. To manage the transaction, the coordinator and the
participant communicate over a network using, for example, a stateless
protocol. The distributed transaction may be terminated when
communication between the participant and coordinator regarding the
transaction does not occur within a time period. The time period may
reflect the time required for a coordinator to send a message and a
participant to acknowledge receipt of the message, and the time for the
participant to perform operations executed for the transaction. The
latency of network traffic between the participant and the coordinator is
monitored, and the time periods adjusted accordingly. In addition, the
amount of time required for the participant to execute operations for the
transaction is monitored, and the time periods adjusted accordingly.