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

Does sharedb Mongo support double write databases? #125

Open
tuluffy opened this issue Mar 17, 2022 · 1 comment
Open

Does sharedb Mongo support double write databases? #125

tuluffy opened this issue Mar 17, 2022 · 1 comment

Comments

@tuluffy
Copy link

tuluffy commented Mar 17, 2022

For example, one database performs OP persistence (old OPS will be deleted at intervals), and the other database records all OPS (for behavior analysis). thx!

@alecgibson
Copy link
Contributor

This sounds like a classic case for op submission middleware — you want to add a hook to eg afterWrite, and then save the op (and potentially snapshot, metadata, etc.) to whatever database/store/warehouse/lake you want to stash it in for later analysis.

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