Microservices, Microservices Pattern, Transactions, Transaction Management, Distributed Systems.
https://www.cl.cam.ac.uk/teaching/2122/ConcDisSys/dist-sys-notes.pdf As a microservice example: https://www.cl.cam.ac.uk/teaching/2122/ConcDisSys/dist-sys-notes.pdf If payment succeeds but there are not enough goods in the shop => you can send an apology e-mail and refund card. There are enough