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

Move persistence query into ViewCreationActor #19

Open
SeanKilleen opened this issue Jun 29, 2022 · 1 comment
Open

Move persistence query into ViewCreationActor #19

SeanKilleen opened this issue Jun 29, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@SeanKilleen
Copy link
Contributor

This way we'll actually store the offset and resume it within that actor.

Also, this will mean making the actor a persistent actor so we can update the snapshot and offset it as well.

ef: https://github.com/SeanKilleen/2022-04_portfolioss_repro/pull/1/files

@SeanKilleen
Copy link
Contributor Author

The idea here is that we'd turn the create views actor into a persistent actor itself. It would keep track of the offset it processed and it would control the replay of the events to itself once it starts up.

In this case, we care more about the current count than anything, so we could probably snapshot every 1000 messages or so to keep things tidy.

I have a WIP PR from the private repo on this that languished a bit -- https://github.com/SeanKilleen/PortfoliOSS/pull/33 -- I can
surface that code here if it would be helpful, and will probably do so in due time.

@SeanKilleen SeanKilleen added the enhancement New feature or request label Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant