Kafka 有持久订阅功能吗? [英] Does Kafka have Durable Subscriptions feature?

查看:27
本文介绍了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 有这个功能.

I see that JMS have this feature.

在网站上说 Kafka 具有耐用性特性.

In the website it said that Kafka had durability features.

是和JMS一样还是意思不同?

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

推荐答案

Consumer 从 kafka(brokers)拉取数据.消费者指定它想要收集数据的位置的偏移量.如果消费者断开连接并返回,它可以从离开的地方继续.它也可以从更早的点开始消费数据(改变偏移量).

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天全站免登陆