# 卡夫卡：权威指南

**《卡夫卡：权威指南》（Kafka: The Definitive Guide）** 是一本关于开源事件流平台阿帕奇·卡夫卡（Apache Kafka）的技术书，由奥莱理传媒（O'Reilly Media）出版，副标题为《大规模实时数据与流处理》（Real-Time Data and Stream Processing at Scale）。第一版（2017 年 9 月）由[康弗伦特](https://www.edgepedia.org/zh/confluent)（Confluent）与领英（LinkedIn）的工程师[内哈·纳尔赫德](https://www.edgepedia.org/zh/neha-narkhede)（Neha Narkhede）、格温·沙皮拉（Gwen Shapira）和托德·帕利诺（Todd Palino）合著，三人都是参与开发卡夫卡的团队成员；第二版由格温·沙皮拉、托德·帕利诺、拉吉尼·西瓦拉姆（Rajini Sivaram）和克里特·佩蒂（Krit Petty）撰写，于 2021 年 11 月问世。<sup>[1](https://www.oreilly.com/library/view/kafka-the-definitive/9781491936153/)</sup><sup> • </sup><sup>[2](https://www.oreilly.com/library/view/kafka-the-definitive/9781492043072/copyright-page01.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 第一版 | 内哈·纳尔赫德、格温·沙皮拉、托德·帕利诺；2017 年 9 月；奥莱理传媒；319 页；ISBN 9781491936153<sup>[1](https://www.oreilly.com/library/view/kafka-the-definitive/9781491936153/)</sup> |
| 第二版 | 格温·沙皮拉、托德·帕利诺、拉吉尼·西瓦拉姆、克里特·佩蒂；2021 年 11 月（首次发布 2021-11-05）；ISBN 9781492043072<sup>[2](https://www.oreilly.com/library/view/kafka-the-definitive/9781492043072/copyright-page01.html)</sup> |
| 章节数 | 第一版：11 章；第二版：14 章<sup>[3](https://system-design.space/en/chapter/kafka-book/)</sup> |
| 读者对象 | 初次接触阿帕奇·卡夫卡的应用架构师、开发者和生产环境工程师；难度评级为入门至中级<sup>[1](https://www.oreilly.com/library/view/kafka-the-definitive/9781491936153/)</sup> |
| 本书主题 | 阿帕奇·卡夫卡，一个用于收集、处理和存储持续事件流的开源事件流平台<sup>[4](https://cloud.google.com/learn/what-is-apache-kafka)</sup> |
| 第二版新增内容 | 专门讲述程序化集群管理、事务、安全与跨集群复制；另有一节讲 KRaft——卡夫卡基于 Raft 的新控制器，以及分层存储<sup>[3](https://system-design.space/en/chapter/kafka-book/)</sup><sup> • </sup><sup>[5](https://www.kriso.ee/kafka-definitive-guide-db-97814920430582e.html)</sup> |
| 译本 | 日文版（奥莱理日本，2018 年）；韩文版（Jpub，2023 年）<sup>[6](https://www.oreilly.co.jp/books/9784873118499/)</sup><sup> • </sup><sup>[7](https://dl.nanet.go.kr/detail/MONO12023000026522)</sup> |

## 本书主题：阿帕奇·卡夫卡

本书是一部阿帕奇·卡夫卡的实践者指南。在独立的综述文章中，卡夫卡被描述为一个开源事件流平台，用于收集、处理和存储持续不断的事件流。与传统消息系统不同，卡夫卡同时也是一个持久化存储系统，它把记录保存在一份有序日志中，可以反复读取且结果可复现，这既支撑了事件驱动的集成，也支撑了有时被称为“事件溯源”的模式——在该模式中，变更被分发到事务型数据库，并在分析系统及其他系统中物化。<sup>[4](https://cloud.google.com/learn/what-is-apache-kafka)</sup> 一份本书的内容摘要把这视为全书的核心设计洞见：把卡夫卡当作消息队列来用是没抓住要害，因为在它底下是一份分区日志，生产者向其中追加记录，而消费者组并行读取各分区，并各自持有已提交的偏移量。<sup>[3](https://system-design.space/en/chapter/kafka-book/)</sup>

## 第一版（2017 年）

第一版在奥莱理书目中列为 319 页，开篇介绍发布/订阅消息传递以及卡夫卡在领英的起源，随后依次讲述安装、生产者、消费者、内部原理、可靠的数据投递、数据管道、跨集群镜像、运维管理、监控，以及用卡夫卡流（Kafka Streams）进行流处理。<sup>[1](https://www.oreilly.com/library/view/kafka-the-definitive/9781491936153/)</sup> 作者们来自康弗伦特和领英，他们申明的写作目的是说明如何部署生产环境的卡夫卡集群、编写可靠的事件驱动微服务、构建可扩展的流处理应用，并涵盖复制协议、控制器、存储层等架构细节。<sup>[1](https://www.oreilly.com/library/view/kafka-the-definitive/9781491936153/)</sup>

凯·尤班克（Kay Ewbank）在《I Programmer》上的书评给本书打了 4.5 分（满分 5 分），指出生产者与消费者两章配有大量代码片段，用意在于阐明概念，而非提供可直接复制粘贴的完整程序；内部原理一章则解释了卡夫卡如何处理复制、来自生产者和消费者的请求，以及消息存储。<sup>[8](https://www.i-programmer.info/bookreviews/1-vb/11530-kafka-the-definitive-guide.html)</sup> 另一篇实践者书评出自 Medium 博客《一位实践者的旅程》背后的工程师之手，他写道，本书以易懂的方式拆解复杂概念，讲“为什么”而不只是讲“怎么做”，并把适合事件流平台的用例与更适合消息队列的用例区分开来；不过他同时认为，与官方文档相比，本书对中级和高级主题的覆盖流于表面。<sup>[9](https://1900jwatson.medium.com/the-best-books-to-learn-apache-kafka-b808f9be43d9)</sup>

## 第二版（2021 年）

第二版署名格温·沙皮拉、托德·帕利诺、拉吉尼·西瓦拉姆和克里特·佩蒂，于 2021-11-05 首次发布，版权年份标为 2022 年。<sup>[2](https://www.oreilly.com/library/view/kafka-the-definitive/9781492043072/copyright-page01.html)</sup> 它把全书扩充到 14 章，新增了专门讲述程序化集群管理（AdminClient）、事务、安全和跨集群复制的章节。<sup>[3](https://system-design.space/en/chapter/kafka-book/)</sup> 其内部原理一章包含一节讲 KRaft——卡夫卡基于 Raft 的新控制器，存储部分则纳入了分层存储，两者都反映了第一版以来卡夫卡项目的变化。<sup>[5](https://www.kriso.ee/kafka-definitive-guide-db-97814920430582e.html)</sup> 一篇关于第二版的读者笔记式书评统计全书含附录共 457 页，并介绍了讲述可靠性、精确一次语义、通过卡夫卡连接（Kafka Connect）在卡夫卡与其他数据库之间搬运数据，以及流处理的各章。<sup>[10](https://www.kuniga.me/blog/2026/01/17/book-kafka.html)</sup>

## 译本与反响

奥莱理日本（O'Reilly Japan）于 2018 年 8 月出版了日译本（ISBN 978-4-87311-849-9），由笹井崇司（Takashi Sasai）翻译，上冈真也（Shinya Kamioka）监修。<sup>[6](https://www.oreilly.co.jp/books/9784873118499/)</sup> 第二版的韩译本《卡夫卡核心指南》（카프카 핵심 가이드）于 2023 年由 Jpub 出版，译者为李东镇（이동진）。<sup>[7](https://dl.nanet.go.kr/detail/MONO12023000026522)</sup>

康弗伦特将该书作为免费电子书分发。<sup>[11](https://www.confluent.io/resources/kafka-the-definitive-guide/)</sup>

## References

1. [Kafka: The Definitive Guide, 1st edition, O'Reilly Media](https://www.oreilly.com/library/view/kafka-the-definitive/9781491936153/)
2. [Kafka: The Definitive Guide, 2nd edition, copyright page, O'Reilly Media](https://www.oreilly.com/library/view/kafka-the-definitive/9781492043072/copyright-page01.html)
3. [Kafka: The Definitive Guide, 2nd Edition (short summary), System Design Space](https://system-design.space/en/chapter/kafka-book/)
4. [What is Apache Kafka?, Google Cloud](https://cloud.google.com/learn/what-is-apache-kafka)
5. [Kafka: The Definitive Guide, 2nd edition, table of contents, Krisostomus](https://www.kriso.ee/kafka-definitive-guide-db-97814920430582e.html)
6. [Kafka, O'Reilly Japan](https://www.oreilly.co.jp/books/9784873118499/)
7. [Kafka Core Guide, National Assembly Library of Korea catalog](https://dl.nanet.go.kr/detail/MONO12023000026522)
8. [Kafka: The Definitive Guide, review by Kay Ewbank, I Programmer](https://www.i-programmer.info/bookreviews/1-vb/11530-kafka-the-definitive-guide.html)
9. [The Best Books to Learn Apache Kafka, Medium](https://1900jwatson.medium.com/the-best-books-to-learn-apache-kafka-b808f9be43d9)
10. [Book: Kafka: The Definitive Guide (reader's notes), kuniga.me](https://www.kuniga.me/blog/2026/01/17/book-kafka.html)
11. [Apache Kafka: The Definitive Guide, Confluent](https://www.confluent.io/resources/kafka-the-definitive-guide/)

---
*Initially written Oct 26, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Databases and data systems › Data mining, warehousing, and big data › Big data platforms and frameworks

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/kafka-the-definitive-guide

English original: https://www.edgepedia.org/kafka-the-definitive-guide
