I am doing the encapsulation of PHP upper-layer interfaces. Other underlying interfaces do a single addition, deletion, and modification. I need to call multiple interfaces on different servers to process the data I need. To the corresponding interface. However, if some data changes fail. Transaction rollback is required. Now I know that the operations on database transactions can be implemented in the same database. However, for different databases on different servers, I need to handle transactions. What should I do. I have Baidu distributed transactions. But I didn't understand it. Baidu is talking about JAVA. I wrote PHP differently from him. Please kindly advise php transaction database
I am doing the encapsulation of PHP upper-layer interfaces. Other underlying interfaces do a single addition, deletion, and modification. I need to call multiple interfaces on different servers to process the data I need. To the corresponding interface. However, if some data changes fail. Transaction rollback is required. Now I know that the operations on database transactions can be implemented in the same database. However, for different databases on different servers, I need to handle transactions. What should I do. I have Baidu distributed transactions. But I didn't understand it. Baidu is talking about JAVA. I wrote PHP differently from him. Please kindly advise