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 关注
- 1517 浏览
添加回答
举报