-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Waiting for ack #359
Comments
Since
const consumer = client.subscribe( /* without listener */ );
async function somewhereElse() {
const msg = await consumer.receive();
consumer.acknowledge(msg);
} |
Thanks a lot for the response. I'm not receiving in the same place I'm acknowledging. I'm trying to find a way to make 1 process add jobs to queues, and acknowledge them, and the other process needs to just process 1 at a time and wait for acknowledgement.
if a second message gets added to the queue, it has to wait for the first message to be acknowledged, |
It seems we can't implement it with only the functionality of pulsar-client. |
I'm trying to consume 1 message at a time, and i'm acknowledging the message outside of the listener. But it's just grabbing the next message without waiting for the ack.
code sample:
Is something like this possible?
The text was updated successfully, but these errors were encountered: