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

微服务与事件驱动架构

by Adam Bellemare
October 2021
Beginner to intermediate
250 pages
7h 11m
Chinese
Posts & Telecom Press
Content preview from 微服务与事件驱动架构
154
11
以下是缓解这些挑战的两种方法。
运行多个小型集群
每个团队或业务单元可以拥有自己的集群,它们跟其他集群完全隔离。最好的方法是,
你可以通过编程方式来请求集群资源以保持较低的操作开销(无论是自己开发还是使用
第三方供应商)。由于在协调节点(例如,主节点和
Zookeeper
节点)和监控
/
管理集群
方面的开销,这种方法可能会带来较高的财务成本。
命名空间
一个集群可以划分出多个具有专用资源的命名空间。每个团队或业务小组可以在自己的
命名空间内分配自己的资源。在该命名空间内执行的应用程序只能获取这些资源,从而
防止它们主动获取其他命名空间的资源而使其他应用程序陷入饥饿状态。此选项的一个
缺点是,即使不需要,也必须将备用资源分配给每个命名空间,这可能会导致更大的空
闲资源碎片池。
11.10
 语言和语法
重量级流处理框架植根于其前身的
JVM
语言中,
Java
是最常用的,其次是
Scala
Python
也是一种常见的语言,因为它在数据科学家和机器学习专家中很流行,这两类人在这些框
架的传统用户中占了很大一部分。
MapReduce
风格的
API
是很常用的
,其中的操作会链接
在一起作为数据集上的固定操作。重量级框架的
API
支持的语言相当有限。
SQL
的语言也越来越普遍
。这使得可以用
SQL
转换来表示拓扑,并且减少了学习新框
架的特定
API
的认知
成本。
Spark
Flink
Storm
Beam
都提供了类
SQL
语言,尽管它
们在功能和语法上有所不同,而且并非所有操作都受支持。
11.11
 选择一个框架
选择重量级流处理框架与选择 ...
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