Transactions in microservices

后端 未结 6 1423
孤街浪徒
孤街浪徒 2021-02-07 00:52

I have read some articles about microservices architecture, but no one takes the topic of transaction. All that they says that this is hard to do it. Maybe someone can describe

6条回答
  •  故里飘歌
    2021-02-07 01:49

    two-phase commit can be option.Coordinator send commit request message to cohorts.Cohorts send back ok.After then coordinator sends commit message to cohorts.If any failure happpens coordinator sends rollback messages to cohorts.

提交回复
热议问题