Overview
Spring Cloud Stream 中的 Kafka 绑定器生态系统基于 Reactor Kafka 项目提供了一个专用反应式绑定器。这种反应式 Kafka 绑定器能够在基于 Apache Kafka 的应用程序中启用全面的端到端反应式功能,比如反压、反应式流等。当您的 Spring Cloud Stream Kafka 应用程序使用反应式类型(Flux
、Mono
等)编写时,建议使用这个反应式 Kafka 绑定器,而不是基于消息通道的普通 Kafka 绑定器。
Kafka binder ecosystem in Spring Cloud Stream provides a dedicated reactive binder based on the Reactor Kafka project.
This reactive Kafka binder enables full end-to-end reactive capabilities such as backpressure, reactive streams etc. in applications based on Apache Kafka.
When your Spring Cloud Stream Kafka application is written using reactive types (Flux
, Mono
etc.), it is recommended to use this reactive Kafka binder instead of the regular message channel based Kafka binder.