官术网_书友最值得收藏!

Applying the event-first variant of the Event Sourcing pattern

Event sourcing is a key pattern for designing eventually consistent cloud-native systems. Upstream services produce events as their state changes, and downstream services consume these events and produce their own events as needed. This results in a chain of events whereby services collaborate to produce a business process that results in an eventual consistency solution. Each step in this chain must be implemented as an atomic unit of work. Cloud-native systems do not support distributed transactions, because they do not scale horizontally in a cost-effective manner. Therefore, each step must update one, and only one, system. If multiple systems must be updated, then each is updated in a series of steps. In this recipe, we leverage the event-first variant of the Event Sourcing pattern where the atomic unit of work is writing to the event stream. The ultimate persistence of the data is delegated to downstream components.

主站蜘蛛池模板: 龙州县| 大渡口区| 永新县| 龙海市| 遂川县| 姜堰市| 慈利县| 铜川市| 襄城县| 霍州市| 云南省| 星座| 鄂托克前旗| 永新县| 武冈市| 广饶县| 靖江市| 东安县| 盘锦市| 连云港市| 班戈县| 民勤县| 读书| 承德市| 清河县| 福清市| 沾益县| 观塘区| 句容市| 佛山市| 周至县| 壤塘县| 曲周县| 上林县| 西盟| 西峡县| 甘洛县| 襄垣县| 娄底市| 莱西市| 临沧市|