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

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.

主站蜘蛛池模板: 卢氏县| 娱乐| 绥化市| 大同市| 新闻| 中西区| 金乡县| 甘孜县| 莱西市| 上饶市| 南开区| 鸡泽县| 平乐县| 溧水县| 凤翔县| 阿鲁科尔沁旗| 兰州市| 广汉市| 双鸭山市| 莒南县| 安远县| 辛集市| 鄂托克前旗| 汉中市| 新安县| 锡林浩特市| 泸西县| 峨边| 屏东县| 墨竹工卡县| 宁国市| 本溪市| 华池县| 甘孜县| 松滋市| 若尔盖县| 偏关县| 徐闻县| 甘肃省| 彝良县| 饶河县|