ayeo-flex-org / pulsar-flex Goto Github PK
View Code? Open in Web Editor NEWPulsar Flex is a modern Apache Pulsar client for Node.js, developed to be independent of C++.
License: MIT License
Pulsar Flex is a modern Apache Pulsar client for Node.js, developed to be independent of C++.
License: MIT License
Is your feature request related to a problem? Please describe.
Currently, pulsar-flex
can't recognize ProxyToBrokerUrl
field, it can't support connect to pulsar-proxy
Describe the solution you'd like
Adapt pulsar-proxy protocol, recognize ProxyToBrokerUrl
field, and send it to correct addr.
Thanks for advance. And thanks for built this library. It's great for peolple who wants to use pure js.
:)
Describe the bug
The test for Should read the unacknowledged message again before the rest of the flow, in batch, in shared subscription, checks that there are 4 messages received while in the pulsar documentation it states that if you negatively acknowledge a message in a batch it resends the whole batch.
Reproduce
Please provide reproduce, For example:
Is your feature request related to a problem? Please describe.
Just found your interesting looking pulsar client!
You are writing in About:
Describe the solution you'd like
Would be pretty handy to give some more information on what is better/more modern and what use cases you have in mind ... in comparison to official node client.
Maybe one could also
Additional context
btw: to connect communities, I opened an issue to link in Doc directly to interesting 3rd party clients like pulsar-flex
apache/pulsar#17113
Describe the bug
Consumer only gets the number of messages in receiveQueueSize and then stops reading.
Reproduce
Please provide reproduce, For example:
Observed behavior
After the consumer has consumed receiveQueueSize messages, it just stops consuming messages.
Environment:
Additional context
Is your feature request related to a problem? Please describe.
Currently the system written in native Node js, we would like to add some @types library for other developers.
Describe the solution you'd like
Create a types library alongside this one.
Describe the bug
Producing in batch didn't work because it didn't return the command.
Reproduce
Please provide reproduce, For example:
Expected behavior
Send batch messages successfully
Is your feature request related to a problem? Please describe.
When creating a producer / consummer, we have to specify a discovery server.
Describe the solution you'd like
I would like to directly specify the broker, and not a discovery server.
Additional context
I'm quite new to pulsar, so maybe i'm completly wrong.
But currently, when trying to establish a connexion, it successfuly connect to the remote server :
"Authentication to discovery service established, now will lookup topic", and then find me a localhost url, that can't work because everything is on the remote server.
{"level":"INFO","timestamp":"2022-10-06T09:04:03.388Z","logger":"pulsar-flex","message":"Creating client connection for producer to topic: persistent://public/default/MY_TOPIC"}
{"level":"INFO","timestamp":"2022-10-06T09:04:03.389Z","logger":"pulsar-flex","message":"Starting to lookup topic persistent://public/default/MY_TOPIC on __________________________________:6650"}
{"level":"INFO","timestamp":"2022-10-06T09:04:03.417Z","logger":"pulsar-flex","message":"Connected successfully __________________________________:6650, now sending connect command."}
{"level":"INFO","timestamp":"2022-10-06T09:04:03.444Z","logger":"pulsar-flex","message":"Authentication to discovery service established, now will lookup topic"}
{"level":"INFO","timestamp":"2022-10-06T09:04:03.467Z","logger":"pulsar-flex","message":"Closing connection to discovery connection"}
{"level":"INFO","timestamp":"2022-10-06T09:04:03.469Z","logger":"pulsar-flex","message":"Lookup succeeded, owner is localhost:6650"}
Error: connect ECONNREFUSED 127.0.0.1:6650
Describe the bug
When a topic is unloaded the producer will keep reconnecting forever.
Reproduce
Please provide reproduce, For example:
Expected behavior
It's expected from the producer to reconnect once.
Observed behavior
Mentioned above.
Environment:
Additional context
Nope.
Describe the bug
Consume on high throughput sturggles to keep up and eventually leads to memory usage rising until crashing
Reproduce
Observed behavior
Every time the dequeue function is called, I logged the length of receiveQueue. At some point, it barely manages to empty the queue, reaching thousands of messages rapidly (even though I set receiveQueueSize to 1000).
This can be seen even within seconds if the consumer starts with a few thousand messages in its backlog.
Environment:
Describe the bug
Flow does not get called when receive queue is empty
Describe the bug
The consumer does not have the properties field that the producer has
Is your feature request related to a problem? Please describe.
The feature is not related to a problem
Describe the solution you'd like
Implement negative acknowledgement for consumer to enable re-consumption of acknowledged messages.
Describe the bug
When consuming messages produced in a batch there aren't properties for the message
Reproduce
Please provide reproduce, For example:
Describe the solution you'd like
I would like to be able to listen to events of state changes for the consumer (producer can also be nice). Say the consumer state changes to RECONNECTING, I want to catch it via an event and perform some logic.
Describe the bug
There is a warning that messages are going to the pending queue although they should not.
Reproduce
Please provide reproduce, For example:
Observed behavior
Environment:
Is your feature request related to a problem? Please describe.
Add the redelivery count to the base object to use
Describe the solution you'd like
The redelivery count in the basic object when reading a message
Describe the bug
When consuming messages, a memory leak is created due to unresolved promises. After leaving the consumer on for a while, a heap snapshot will show an increasing number of promise references.
Reproduce
Expected behavior
The process memory to stay stable.
Observed behavior
Explained above.
Environment:
Is your feature request related to a problem? Please describe.
The feature is not related to a problem.
Describe the solution you'd like
Implement redeliver of unacknowledged messages.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.