Question: what is 2pc in microservices?
Answer: Two-phase commit (2pc) pattern. 2pc is widely used in database systems. For some situations, you can use 2pc for microservices. ... Normally, there needs to be a global coordinator to maintain the lifecycle of the transaction, and the coordinator will need to call the microservices in the prepare and commit phases.