kafka分布式消息中间件

Apache Kafka是一款强大的分布式流处理平台,支持发布/订阅模式的数据流处理,具备高容错能力的数据存储,并能够实时处理数据流。适用于构建实时数据管道及流式应用,通过四大核心API实现数据的生产、消费、流式处理及外部系统连接。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Apache Kafka是一个分布式流式平台.
1. 可以发布/订阅 (publish/subscribe) records流.
2. 可以以fault-tolerance方式存储records流.
3. 可以实时处理records流. (streams of records)

实用场景:
1. 在不同系统或应用间搭建实时流数据管道.
2. 搭建实时的流式应用来传输或对数据流进行响应.

kafka以集群的形式运行.
kafka集群存储数据流的单元叫做topic
每条record包含: key, value, 和 timestamp

Kafka有4个核心API:
1. Producer API allows an application to publish a stream of records to one or more Kafka topics.
2. Consumer API allows an application to subscribe to one or more topics and process the stream of records produced to them.
3. Streams API allows an application to act as a stream processor, consuming an input stream from one or more topics and producing an output stream to one or more output topics, effectively transforming the input streams to output streams.
4. Connector API allows building and running reusable producers or consumers that connect Kafka topics to existing applications or data systems. For example, a connector to a relational database might capture every change to a table.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值