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权威指南
6
可靠的数据传递
对于系统来说,可靠的数据传递不能成为马后炮。与性能一样,在系统的设计之初就应该
考虑可靠性问题,而不能在事后才来考虑。而且,可靠性是系统的一个属性,而不是一
个独立的组件,所以在讨论
Kafka
的可靠性保证时,还是要从系统的整体出发。说到可靠
性,那些与
Kafka
集成的系统与
Kafka
本身一样重要。正因为可靠性是系统层面的概念,
所以它不只是某个个体的事情。
Kafka
管理员、
Linux
系统管理员、网络和存储管理员以及
应用程序开发者,所有人必须协同作战,才能构建一个可靠的系统。
Kafka
在数据传递可靠性方面具备很大的灵活性。我们知道,
Kafka
可以被用在很多场景
里,从跟踪用户点击动作到处理信用卡支付操作。有些场景要求很高的可靠性,而有些则
更看重速度和简便性。
Kafka
被设计成高度可配置的,而且它的客户端
API
可以满足不同
程度的可靠性需求。
不过,灵活性有时候也很容易让人掉入陷阱。有时候,你的系统看起来是可靠的,但实
际上有可能不是。本章先讨论各种各样的可靠性及其在
Kafka
场景中的含义。然后介绍
Kafka
的复制功能,以及它是如何提高系统可靠性的。随后探讨如何配置
Kafka
broker
和主题来满足不同的使用场景需求,也会涉及生产者和消费者以及如何在各种可靠性场景
里使用它们。最后介绍如何验证系统的可靠性,因为系统的可靠性涉及方方面面——一些
前提条件必须先得到满足。
6.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

精通機器學習

精通機器學習

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

精通特征工程

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

高效能PYTHON程式設計

Micha Gorelick, Ian Ozsvald

Publisher Resources

ISBN: 9787115473271