Something like databases transactions rollback
function, but this would work for all above operations, not only database. For example:
first query for my database
send service to first other server
second query for my database
send service to second other server
if (some condition) {
here need cancel all above operations.
if use database transaction `rollback` function, my database changes are canceled.
There is possible, that cancel service sending (or may be some other, not only database) operations also?
}
Is there anything possible that cancel all previous operation in php?