Skip to Content
微服务与事件驱动架构
book

微服务与事件驱动架构

by Adam Bellemare
October 2021
Beginner to intermediate
250 pages
7h 11m
Chinese
Posts & Telecom Press
Content preview from 微服务与事件驱动架构
将事件驱动架构与现有系统集成
59
糟糕的可伸缩性
触发器数量应随着要被捕获的数据集数量线性伸缩。这要排除业务逻辑中可能已经存在
的所有其他触发器,比如用于增强表之间依赖关系的触发器。
事后结构化
对输出事件的结构化只能发生在已经将记录写到发件箱表之后。这可能会导致在发件箱
中有无法发布的事件。
某些数据库允许触发器在执行期间用可校验数据和输出事件
schema
兼容性
的语言来执行(例如,
PostgreSQL
可以用
Python
来执行)
。这会增加复杂性
和开销,但会显著降低下游
schema
不兼容的风险。
4.7
 对处于捕获的数据集做数据定义变更
在数据解放框架中集成数据定义变更是很困难的。数据迁移对许多关系型数据库应用程序
来说是常见操作,并且数据捕获过程需要支持它们。关系型数据库的数据定义变更包括对
列的添加、删除和重命名,更改列的类型,以及添加或删除默认值。虽然所有这些数据集
变更操作都是合法的,但它们可能会对解放事件流数据造成问题。
数据定义
是对数据集的正式描述。例如,关系型数据库中的一张表是用
数据
定义语言
data
definition language
DDL
)来定义的。结果表、列、名称、
类型和索引都是其数据定义的一部分。
如果要求完全的
schema
演化兼容性,就不能删除处于捕获中的数据集中没有默认值的非
空列,因为正在使用之前所定义的
schema
的消费者期望有这个字段的值
。消费者将无法
回退使用任何默认值,因为在契约定义阶段没有指定,所以它们最终将处于一种不明确的
状态。如果不兼容的变更是绝对必要的,并且违反数据契约无法避免 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

监控运维实践:原则与策略

监控运维实践:原则与策略

Mike Julian
Kafka权威指南

Kafka权威指南

Neha Narkhede, Gwen Shapira, Todd Palino
Web容量规划之美

Web容量规划之美

Arun Kejariwal, John Allspaw

Publisher Resources

ISBN: 9787115571106