1 回答

TA貢獻1817條經驗 獲得超14個贊
參考:
Challenge #3: How to achieve consistency across multiple microservices
A good solution for this problem is to use eventual consistency between microservices articulated through event-driven communication and a publish-and-subscribe system.
Implementing event-based communication between microservices (integration events)
You can use events to implement business transactions that span multiple services, which gives you eventual consistency between those services. An eventually consistent transaction consists of a series of distributed actions. At each action, the microservice updates a business entity and publishes an event that triggers the next action.
- 1 回答
- 0 關注
- 1543 瀏覽
添加回答
舉報