Apache Pulsar vs. Apache Kafka:

哪种流技术适合您?

让我们来比较一下这两种流行的开源流技术。

Apache Pulsar

Apache Pulsar 是一个开源的云原生消息流平台。其多层架构使组织能够在弹性云环境中构建持久、可扩展、可靠的应用程序。成千上万的公司将 Pulsar 用于高性能数据管道、事件驱动的微服务、实时分析和其他实时工作负载。Pulsar 最初是由雅虎开发,并于 2016 年开源。

Apache Kafka

Apache Kafka 是一个开源的单体流平台。企业通常会将 Kafka 用于流式传输场景,例如高性能数据管道和流式分析。Kafka 最初由 LinkedIn 开发,并于 2011 年开源。


Key differentiators of Pulsar and Kafka
Architecture

Pulsar provides a multi-layer architecture that decouples storage and compute. Pulsar’s design allows organizations to elastically scale storage independently from compute and achieve different levels of resource isolation. In contrast, Kafka has a monolithic architecture that tightly couples compute and storage, where resources must be scaled together.

Use cases

Pulsar has the flexibility to serve a wide range of messaging and event streaming use cases in one platform. Users can deploy Pulsar as a centralized messaging platform as well as for batch and event streaming. In comparison, Kafka primarily targets event streaming use cases, with only limited messaging support.

Pulsar 与 Kafka 的性能对比

在 2022 年比较 Pulsar 和 Kafka 性能的测试中,我们发现:

  • 与 Kafka 相比,Pulsar 能够实现 2.5 倍的最大吞吐量
  • Pulsar 提供一致的单位数发布延迟,比 Kafka 低 100 倍
  • Pulsar 的历史读取速率是 Kafka 的 1.5 倍
下载基准测试报告阅读完整的测试结果。

Pulsar 与 Kafka 功能对比

了解更多

10 分钟了解 Pulsar:Kafka 用户指南

立即阅读arrow_forward_ios

使用 Kafka-on-Pulsar (KoP) 无需更改代码即可从 Kafka 切换到 Pulsar

了解更多arrow_forward_ios
© 北京原流科技有限公司Apache、Apache Pulsar、Apache BookKeeper、Apache Flink 及相关开源项目名称均为 Apache 软件基金会商标。条款隐私