apache / apache/pulsar-client-node

Creating a subscription with initial position as "earliest"

未关闭
#92 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
triage/week-23 type/feature
主要语言
C++
星标
164
派生
98
PR 合并指标
30 天内没有已合并 PR

描述

My use case: I have a shared subscription with a bunch of consumers. Suppose, all the consumers die and there are messages still being published to the topic. When a new consumer comes in, I want it to read from the last unacknowledged message so that no messages are lost or unprocessed.

So, I want to create a subscription with initial subscription position as `earliest` but I don't see any option to set the initial position. Also, What is default behavior? `earliest` or `latest` ?

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先定位 NodeJS 客户端中的订阅创建 API,并跟踪其初始位置的选择方式。检查现有行为以及关于默认值的文档,然后定义该选项,并验证新的消费者可以从请求的位置开始,而不会丢失未确认的消息。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, nodejs
领域
distributed-systems
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。