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

Persistent subscription cannot start from the beginning of a stream #118

Closed
alexeyzimarev opened this issue May 8, 2021 · 1 comment
Closed

Comments

@alexeyzimarev
Copy link
Member

We know the N+1 thing for subscriptions, so when creating a catch-up subscription, we should use the overload, which doesn't have the stream positions, to subscribe to the beginning of the stream.

However, persistent subscriptions express different behaviour, which is also inconsistent with other clients (NodeJS, Rust), so when I subscribe without giving it a position, it will use Stream.End. Although I understand the intention to make persistent subscriptions behaving in message broker style, it is confusing.

The biggest issue for me is that it seems literally impossible to create a persistent subscription for an existing stream and get the very first event. When given Stream.Start, it will subscribe from 0+1, the second event.

@ylorph
Copy link
Contributor

ylorph commented Oct 3, 2022

Solved with
#188

@ylorph ylorph closed this as completed Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants