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

微服务与事件驱动架构

by Adam Bellemare
October 2021
Beginner to intermediate
250 pages
7h 11m
Chinese
Posts & Telecom Press
Content preview from 微服务与事件驱动架构
结论
227
schema
演化为事件和实体的变更提供了一种响应新业务需求的机制。它使生产者能够使用
新的和修改过的字段生成数据,同时还允许不关心变更的消费者继续使用旧的
schema
行消费。这极大地减少了非关键变更的频率和风险。同时,其余的消费者可以独立地升级
代码,使用最新
schema
的格式来消费和处理事件,使它们能够访问最新的数据字段。
schema
还带来了一些有用的特性
,比如代码生成和数据发现。代码生成器可以创建与生产
和消费应用程序相关的类
/
结构体
。这些强定义的类
/
结构体有助于在编译阶段或本地测
试时检测生产和消费中的格式错误,以确保可以更好地生产和消费事件。这使得开发人员
可以严格聚焦于处理和转换这些事件的业务逻辑而不是数据通道。同时,
schema
注册表提
供了一种可搜索的方法来确定哪些数据属于哪个事件流,从而更容易发现流的内容。
17.5
 数据解放和单一事实来源
一旦有了可用的数据通信层,就可以让关键业务数据进入里面。从组织的各种服务和数据
存储中解放数据是一个漫长的过程,将所有必要的数据放入事件代理需要一些时间。这是
解耦系统并向事件驱动架构迈进的关键一步。数据解放将数据的生产和所有权与下游消费
者对数据的访问进行了解耦。
应该先解放对组织达成下一个主要目标最常用及最关键的数据。从各种服务和数据存储中
抽取信息的方法有很多,每种方法都有优点和缺点。权衡对现有服务的影响与过时数据、
缺少
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