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

Refresh pipeline cache on process external modifications #30

Open
cristiandonoiu opened this issue Feb 16, 2023 · 0 comments
Open

Refresh pipeline cache on process external modifications #30

cristiandonoiu opened this issue Feb 16, 2023 · 0 comments

Comments

@cristiandonoiu
Copy link
Contributor

This is needed in case a pipeline is changed directly in the DB (without using the provided PipelineStore api) or from another process.
We can use Mongo ChangeStreams.

Sample code and saving of the resumeToken mentioned here:
https://stackoverflow.com/questions/75465217/mongodb-how-to-stop-and-resume-change-stream/75477516#75477516
We do not need to do change data capture so no need to save resumeToken.
Instead, do a full refresh of the cache on every modification on the pipeline collection.

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

1 participant