2.2 Consumer API官网剖析(博主推荐)
生活随笔
收集整理的這篇文章主要介紹了
2.2 Consumer API官网剖析(博主推荐)
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
?
?
不多說,直接上干貨!
?
一切來源于官網(wǎng)
http://kafka.apache.org/documentation/?
?
?
?
?
2.2 Consumer API
2.2、消費者API?
?
隨著0.9.0版本,我們已經(jīng)增加了一個新的Java消費者替換我們現(xiàn)有的基于zookeeper的高級和低級消費者。這個客戶端還是測試版的質(zhì)量。為了確保用戶平滑升級,
我們?nèi)匀痪S護(hù)舊的0.8版本的消費者客戶端繼續(xù)在0.9集群上工作,
兩個老的0.8 API的消費者( 高級消費者 和 低級消費者)。
?
?
The Consumer API allows applications to read streams of data from topics in the Kafka cluster.
?
Examples showing how to use the consumer are given in the?javadocs.
?
?
To use the consumer, you can use the following maven dependency:
對于使用生產(chǎn)者,你可以使用以下的maven依賴 <dependency><groupId>org.apache.kafka</groupId><artifactId>kafka-clients</artifactId><version>0.10.2.0</version></dependency>如何使用新的消費者,請請見如下
kafka消費者客戶端(0.10.0.1API)
http://orchome.com/451?
kafka消費者客戶端(0.9.0.1API)
http://orchome.com/203?
kafka消費者低級實例
http://orchome.com/11?
?
?
kafka舊高級消費者API
http://orchome.com/9?
?
?
?
轉(zhuǎn)載于:https://www.cnblogs.com/zlslch/p/6767693.html
總結(jié)
以上是生活随笔為你收集整理的2.2 Consumer API官网剖析(博主推荐)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 红外感应模块+蜂鸣器实现简易报警(转)
- 下一篇: Java正则表达式的使用和详解(上)