apache / apache/pulsar-client-node
Thousands of producers are getting created
- Dominant language
- C++
- Stars
- 164
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
Hi, I'm using node pulsar client to publish messages on a partitioned pulsar topic with 100 partitions. I'm spawning 20 node processes and reusing the same producer(I'm not closing the producer) that means there should be only 20 producers. But, when I see topic stats it shows a lot of producers (in thousands). What I'm doing wrong? Also, is there a difference b/w a producer and a publisher?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the report with 20 Node processes, a 100-partition topic, and reused producers, then compare the producer count in topic stats with the client lifecycle. Trace how the Node Pulsar client creates producers and clarify the distinction between a producer and a publisher. Done means the unexpected count and the reported usage are explained, with any needed correction identified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100