┌───────────────┐ ┌───────────────┐ ┌───────────────┐
│ Coordinator │ │ Participant 1 │ │ Participant 2 │
└──────┬────────┘ └──────┬────────┘ └──────┬────────┘
│ Prepare request │ Prepare request │
│────────────────────────▶│ │
│ │ │
│ │ Prepare OK / Fail │
│◀────────────────────────│ │
│ │ │
│ Prepare request │ Prepare request │
│──────────────────────────────────────────────────▶│
│ │ │
│ │ Prepare OK / Fail │
│ │◀────────────────────────│
│ │ │
│ If all OK, send Commit │ │
│────────────────────────▶│ │
│ │ Commit │
│ │ │
│ │ Commit │
│──────────────────────────────────────────────────▶│
│ │ │
│ │ Commit │
│ │ │This diagram shows the coordinator sending prepare requests to participants, collecting their responses, and then sending commit commands if all agree.