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

Applying the database-first variant of the Event Sourcing pattern with DynamoDB

In the previous recipe, Applying the event-first variant of the Event Sourcing pattern, 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 will 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 this recipe, we will demonstrate implementing this pattern with AWS DynamoDB and DynamoDB Streams.

主站蜘蛛池模板: 建昌县| 莫力| 通许县| 子洲县| 皮山县| 祁连县| 柳州市| 邳州市| 巴南区| 武乡县| 马边| 武穴市| 霞浦县| 合作市| 泰安市| 黔西县| 景德镇市| 洪洞县| 浏阳市| 称多县| 新巴尔虎左旗| 富阳市| 明光市| 东乡| 南皮县| 沽源县| 宜春市| 望江县| 阿鲁科尔沁旗| 若尔盖县| 临澧县| 英德市| 常德市| 杨浦区| 临漳县| 平顺县| 双流县| 五原县| 南充市| 波密县| 宜黄县|