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

微服务与事件驱动架构

by Adam Bellemare
October 2021
Beginner to intermediate
250 pages
7h 11m
Chinese
Posts & Telecom Press
Content preview from 微服务与事件驱动架构
162
12
12.5.1
 
Apache Kafka Streams
Kafka Streams
是一个嵌入到某个应用程序中的功能强大的流处理库,其中输入事件和输出
事件存储在
Kafka
群中。它结合了编写和发布标准
JVM
应用程序的简单性,以及利用
Kafka
集群深度集成的流处理框架的强大性。
12.5.2
 
Apache Samza
嵌入模式
Samza
提供了许多与
Kafka Streams
一样的特性,虽然在与独立部署相关的某些特性方面它
还有些滞后。
Samza
早于
Kafka
Streams
,它最初的部署模型基于使用重量级集群。直到最
近,
Samza
才发布了一个嵌入模式,这个模式与
Kafka
Streams
的应用程序编写、部署和生
命周期管理模式相似。
就像所有其他的
Java
库一样
Samza
的嵌入模式使你可以在单个应用程序中嵌入它的功
能。这个部署模式不需要依赖于专门的重量级集群,而是依赖于前面讨论过的轻量级框架
模型。默认情况下,
Samza
依赖于使用
Apache ZooKeeper
来进行跨单独实例的协调
,但是
可以将其修改为使用其他的协调机制(如
Kubernetes
)。
Apache Samza
的嵌入模式可能不会提供它在集群模式下所拥有的所有功能。
轻量级框架不如重量级框架或用于
BPC
模式的消费者
/
生产者库那样普遍。轻量级框架确
实极度依赖与事件代理的集成,这限制了它们在其他事件代理技术上的可移植性。轻量级
框架领域还相当年轻,但随着
EDM
领域的成熟,它肯定会不断发展壮大。
12.6
 语言和语法
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

成為卓越程式設計師的38項必修法則

成為卓越程式設計師的38項必修法則

Pete Goodliffe
下一代空间计算:AR与VR创新理论与实践

下一代空间计算:AR与VR创新理论与实践

Erin Pangilinan, Steve Lukas, Vasanth Mohan

Publisher Resources

ISBN: 9787115571106