We are developing a mobile app to exchange media files between community members. Since we need to support offline use and then sync when connection (or wifi) is available, we choosed Couchbase mobile for its replications features.
My first approach was to store the media as binary BLOB file on the CBL database, replicate it to the Couchbase server then allow members to get it on their device via pull replication and use it offline on their devices, if needed. Then I read that it is not a good idea to store BLOB on any database, including on this Kirk Kirkconnell’s excellent article.
I’m sensitive to all the exposed arguments especially the cost effectiveness. But, since the SGW replication is a key feature we need to use, do I face an issue storing BLOB on the file system? Is there a robust way to keep replicating BLOB between Couchbase server and client’s devices even if they are stored on the file system?
Does someone know a better way to manage that use case?