-
Notifications
You must be signed in to change notification settings - Fork 169
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
Ordered consumer recreate & mem_storage R1 #654
Conversation
01a6c38
to
fc82ec8
Compare
let last_sequence = Arc::new(AtomicU64::new(0)); | ||
let consumer_sequence = Arc::new(AtomicU64::new(0)); | ||
let (shutdown_tx, shutdown_rx) = tokio::sync::oneshot::channel(); | ||
tokio::task::spawn({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this have to run out of band?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If consumer will be deleted on the server, client will get no messages, nor nothing will be additionaly polled.
So I'm afraid yes - we need this in a task.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
implements nats-io/nats-architecture-and-design#162 (comment)