Keeping track of stream versions to query for streams to snapshot is an overkill, we can just add an entry point to plug-in a custom strategy for snapshots after committing.
Benefits:
1) less db calls on every commit
2) pluggable snapshot strategy / implementation
Keeping track of stream versions to query for streams to snapshot is an overkill, we can just add an entry point to plug-in a custom strategy for snapshots after committing.
Benefits: 1) less db calls on every commit 2) pluggable snapshot strategy / implementation