Skip to Content
Kafka权威指南
book

Kafka权威指南

by Neha Narkhede, Gwen Shapira, Todd Palino
January 2018
Beginner to intermediate
234 pages
7h 8m
Chinese
Posts & Telecom Press
Content preview from Kafka权威指南
100
6
间差。然后,你需要使用工具来比较生产者和消费者记录的消息数量(为了确保没有丢失
消息),确保这两者之间的时间差不会超出我们允许的范围。为了做到更好的监控,我们
可以增加一个“监控消费者”,这个消费者订阅一个特别的主题,它只进行消息的计数操
作,并把数值与生成的消息数量进行对比,这样我们就可以在没有消费者的情况下仍然能
够准确地监控生产者。这种端到端的监控系统实现起来很耗费时间,具有一定挑战性。据
我们所知,目前还没有开源的实现。
Confluent
提供了一个商业的实现版本,它是
Confluent
Control Center
的一部分。
6.7
 总结
正如我们在本章开头所说的,可靠性并不只是
Kafka
单方面的事情。我们应该从整个系统
层面来考虑可靠性问题,包括应用程序的架构、生产者和消费者
API
的使用方式、生产
者和消费者的配置、主题的配置以及
broker
的配置。系统的可靠性需要在许多方面作出权
衡,比如复杂性、性能、可用性和磁盘空间的使用。掌握
Kafka
的各种配置和常用模式,
对使用场景的需求做到心中有数,你就可以在应用程序和
Kafka
的可靠性程度以及各种权
衡之间作出更好的选择。
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

精通機器學習

精通機器學習

Aurélien Géron
精通特征工程

精通特征工程

Alice Zheng, Amanda Casari
高效能PYTHON程式設計

高效能PYTHON程式設計

Micha Gorelick, Ian Ozsvald

Publisher Resources

ISBN: 9787115473271