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

ListStreams guidance #376

Open
wooderz opened this issue Mar 26, 2020 · 2 comments
Open

ListStreams guidance #376

wooderz opened this issue Mar 26, 2020 · 2 comments

Comments

@wooderz
Copy link
Contributor

wooderz commented Mar 26, 2020

I've been looking in the docs and can't find reference to the ListStreams method. Am hoping to find guidance on the correct way to use it, I'm assuming a while loop to the Next() method was the intention?

Thanks!

@thefringeninja
Copy link
Member

thefringeninja commented Mar 26, 2020 via email

@wooderz
Copy link
Contributor Author

wooderz commented Mar 26, 2020

Perfect thanks!

I'm looking for a way to be able to track my observers. How I've currently done it is to set up an AllStreams Subscription on app load that then marshalls events to the appropriate stream observers (there could be many per stream building different read models whatever).

I'm then storing the position of my AllStreams sub as well as the individual observer/stream subs in postgres to be able to not have to start them at 0 on every app load.

Does that approach make sense? I was experimenting with the ListStreams approach to get everything in the current system and then subscribing to them individually, but that makes it harder to determine what observers need a subscription (in the current thinking, anyway)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants