Skip to content
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

Does NSQD ignores consumer disconnects? (server-wide message id) #137

Closed
angry-elf opened this issue Jan 21, 2013 · 3 comments
Closed

Does NSQD ignores consumer disconnects? (server-wide message id) #137

angry-elf opened this issue Jan 21, 2013 · 3 comments
Labels

Comments

@angry-elf
Copy link

Hello.

As I know, RabbitMQ handles consumer disconnects and resend lost-in-flight messages (without delivery reports) automatically to another connected consumer. It's looks ok as RabbitMQ has no unique (at least, per server) message id's (only per consumer).

As I realized, nsqd do not immediatelly resend messages from disconnected consumers which are in the "in-flight" state but wait confugred message timeout before. As I understand, customer can reconnect and send fin/req commands for messages, received in previous session.

Is it correct nsqd behaviour or side-effect? May be, it should be documented somewhere?

@mreiferson
Copy link
Member

If a consumer disconnects while messages are in-flight they are treated like any condition where the message isn't responded to in time (ie, they timeout and re-queue).

Currently, a consumer cannot re-connect and respond to those messages... I suppose they could automatically re-queue without waiting the timeout (but that would simply be an optimization).

@mreiferson
Copy link
Member

@angry-elf did you have any other questions relating to this?

@angry-elf
Copy link
Author

Nop, thank you.

arussellsaw pushed a commit to arussellsaw/nsq that referenced this issue Mar 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants