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

Applying the database-first variant of the Event Sourcing pattern with Cognito datasets

In the Applying the event-first variant of the Event Sourcing pattern recipe, we discussed how the Event Sourcing pattern allows us to design eventually consistent systems that are composed of a chain of atomic steps. Distributed transactions are not supported in cloud-native systems, because they do not scale effectively. Therefore, each step must update one, and only one, system. In this recipe, we leverage the database-first variant of the Event Sourcing pattern, where the atomic unit of work is writing to a single cloud-native database. A cloud-native database provides a change data capture mechanism that allows further logic to be atomically triggered that publishes an appropriate domain event to the event stream for further downstream processing. In the recipe, we demonstrate an offline-first implementation of this pattern with AWS Cognito datasets.

主站蜘蛛池模板: 厦门市| 城市| 旺苍县| 新民市| 赞皇县| 黄陵县| 甘谷县| 南江县| 兴国县| 湘西| 凤山县| 宁德市| 盐亭县| 连江县| 陇川县| 鄂伦春自治旗| 玉树县| 资溪县| 凌源市| 宝鸡市| 西乌珠穆沁旗| 江孜县| 清河县| 甘洛县| 白银市| 海宁市| 大余县| 鄱阳县| 普陀区| 南安市| 武陟县| 普格县| 包头市| 贵德县| 天峨县| 富顺县| 遂溪县| 台前县| 凤城市| 陈巴尔虎旗| 满洲里市|