1. A method comprising: sending, by a processing device executing a transaction manager, prepare messages to a plurality of participants of a two-phase commit distributed transaction; determining, by the processing device, a time period to wait for the plurality of participants to commit the two-phase commit distributed transaction; responsive to not receiving an abort response from a participant of the plurality of participants within the time period, committing the two-phase commit distributed transaction at an end of the time period; and ending the two-phase commit distributed transaction without first sending commit messages to the plurality of participants.