Kafka是否具有“持久订阅"功能? [英] Does Kafka have Durable Subscriptions feature?

查看:237
本文介绍了Kafka是否具有“持久订阅"功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有兴趣在我的一个项目中使用Kafka,但是有一个要求,当一个订户(使用者)断开连接时,消息传递代理必须保留消息.

I'm interested to use Kafka in one of my projects, but there is a requirement that the messaging broker have to keep the the messages when one of the subscriber (consumer) is disconnected.

我看到JMS具有功能.

在网站上说,Kafka具有耐久性功能.

In the website it said that Kafka had durability features.

与JMS一样还是具有不同的含义?

Is it the same like JMS or is it have different meaning ?

推荐答案

消费者从kafka(经纪人)中提取数据.消费者指定要从其收集数据的位置开始的偏移量.如果Consumer断开连接并回来,它可以在离开的地方继续.它还可以从较早的位置开始使用数据(更改偏移量).

Consumer pulls the data from kafka (brokers). Consumer specifies the offset from where it wants to gather the data. If Consumer disconnects and comes back, it can continue where it left. It can also start consuming data from earlier point (changing the offset).

这篇关于Kafka是否具有“持久订阅"功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆