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

微服务与事件驱动架构

by Adam Bellemare
October 2021
Beginner to intermediate
250 pages
7h 11m
Chinese
Posts & Telecom Press
Content preview from 微服务与事件驱动架构
225
17
结论
事件驱动型微服务架构提供了强大、灵活且定义良好的方法来解决业务问题。本章是对本
书所涵盖内容的快速回顾,另外还有一些最后的话。
17.1
 通信层
数据沟通结构带来了跨整个组织的重要业务事件的通用访问。事件代理非常好地满足了这
一需求,因为它们允许对数据进行严格的组织,可以近实时地传播更新,并且可以在大数
据规模上运行。数据通信与负责转换和使用数据的业务逻辑保持严格的解耦,这些需求会
转移到单独的界限上下文中。这种关注点的分离允许事件代理在很大程度上保持对业务逻
辑需求的不可知性(除了支持读写之外),使它能够严格聚焦于存储、保存并交付事件数
据给消费者。
成熟的数据通信层将数据的所有权和生产与数据的访问和消费分离开来。应用程序不再
需要执行双重任务。(在服务内部业务逻辑的同时也为其他服务提供同步机制和外部的直
接访问。)
任何服务都可以利用事件代理的持久性和弹性来使其数据高度可用,包括那些使用事件代
理存储其内部状态变更日志的服务。服务实例故障不再意味着数据不可用,只是表明新数
据会延迟到生产者重新上线。同时,在任何生产者中断期间,消费者都可以自由地消费事
件代理的事件,从而与服务之间的故障模型解耦。
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