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

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.

主站蜘蛛池模板: 安顺市| 汝州市| 长沙市| 桃园市| 隆尧县| 台州市| 祁东县| 北宁市| 广元市| 淮南市| 确山县| 海林市| 宾阳县| 宝丰县| 新源县| 盐山县| 剑川县| 浦县| 会宁县| 阿城市| 阳曲县| 连平县| 芦溪县| 鹤庆县| 焦作市| 思南县| 沾益县| 临漳县| 桐乡市| 宿迁市| 大渡口区| 固原市| 垦利县| 腾冲县| 张北县| 革吉县| 穆棱市| 三门峡市| 香港| 台东县| 漳浦县|