We should think about the different ways that someone might want to use this + redis-oplog and provide configuration options for limiting how much of the oplog is consumed. Some ideas:
-
The default configuration of redis-oplog assumes that there's only one database on the MongoDB server that's being used with redis-oplog. Maybe oplogtoredis should have a matching "single database" mode where we publish redis messages without the database name, so this simple use-case can be accommodated without using the globalChannelPrefix option in redis-oplog
-
The MongoDB server might have other unrelated databases on it, and we should let users whitelist or blacklist databases that we don't need to process
-
The MongoDB database might have some collections that don't need real-time updates or have very high write throughputs that we can't support. We should let users whitelist or blacklist specific collections as needed.
However we handle this, we should provide guidance on how to appropriately configure oplogtoredis and redis-oplog so they work together correctly.
We should think about the different ways that someone might want to use this + redis-oplog and provide configuration options for limiting how much of the oplog is consumed. Some ideas:
The default configuration of redis-oplog assumes that there's only one database on the MongoDB server that's being used with redis-oplog. Maybe oplogtoredis should have a matching "single database" mode where we publish redis messages without the database name, so this simple use-case can be accommodated without using the
globalChannelPrefixoption in redis-oplogThe MongoDB server might have other unrelated databases on it, and we should let users whitelist or blacklist databases that we don't need to process
The MongoDB database might have some collections that don't need real-time updates or have very high write throughputs that we can't support. We should let users whitelist or blacklist specific collections as needed.
However we handle this, we should provide guidance on how to appropriately configure oplogtoredis and redis-oplog so they work together correctly.